Methods
delete
- delete(dao: string, groups?: string[]): Promise<void>
-
Parameters
-
dao: string
-
Optional
groups: string[]
Returns Promise<void>
get
- get(dao: string, group: string, key: string): Promise<null | Buffer>
-
Parameters
-
dao: string
-
group: string
-
key: string
Returns Promise<null | Buffer>
set
- set(dao: string, group: string, key: string, value: Buffer, ttlMs?: number): Promise<void>
-
Parameters
-
dao: string
-
group: string
-
key: string
-
value: Buffer
-
Optional
ttlMs: number
Returns Promise<void>
stats
- stats(): Promise<null | {
cached: number;
hits: number;
misses: number;
sets: number;
}>
-
Returns Promise<null | {
cached: number;
hits: number;
misses: number;
sets: number;
}>