Methods
Abstract close
- close(): Promise<boolean>
Abstract delete
- delete(keys: string | string[]): Promise<number>
-
Parameters
Returns Promise<number>
Abstract expire
- expire(key: string, ttl: number): Promise<boolean>
-
Parameters
Returns Promise<boolean>
Abstract get
- get(key: string): Promise<any>
-
Parameters
Returns Promise<any>
Abstract has
- has(key: string): Promise<boolean>
-
Parameters
Returns Promise<boolean>
Abstract keys
- keys(): Promise<string[]>
-
Returns Promise<string[]>
Abstract set
- set(key: string, value: any, ttl?: number): Promise<boolean>
-
Parameters
-
key: string
-
value: any
-
Optional ttl: number
Returns Promise<boolean>
Abstract ttl
- ttl(key: string): Promise<number>
-
Parameters
Returns Promise<number>
Abstract base class required for implementing a cache driver.