Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Accessors

Methods

Constructors

constructor

  • new Redis(options?: ClientOpts): Redis

Accessors

Protected client

  • get client(): RedisClient
  • Lazy loads underlying Redis client. This ensures users don't get a module not found error when importing this library without installing the redis package.

    Returns RedisClient

Methods

close

  • close(): Promise<boolean>

delete

  • delete(keys: string | string[]): Promise<number>

expire

  • expire(key: string, ttl: number): Promise<boolean>

get

  • get(key: string): Promise<string>

has

  • has(key: string): Promise<boolean>

keys

  • keys(): Promise<string[]>

set

  • set(key: string, value: any, ttl?: number): Promise<boolean>

ttl

  • ttl(key: string): Promise<number>

Generated using TypeDoc