-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
executable file
·37 lines (35 loc) · 1.48 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
declare module 'object-key-cache';
declare class ObjectKeyCache {
constructor(config: any, credentials: any, logger: any);
attachToClient(client: any): void;
detachFromClient(): void;
connect(): Promise<any>;
get(key: string): Promise<any>;
set(key: string, value: any): Promise<any>;
del(key: string): Promise<any>;
hget(hash: string, key: string): Promise<any>;
hset(hash: string, key: string, value: any): Promise<any>;
hdel(hash: string, key: string): Promise<any>;
getAsync(key: string): Promise<any>;
setAsync(key: string, value: any): Promise<any>;
delAsync(key: string): Promise<any>;
hgetAsync(hash: string, key: string): Promise<any>;
hsetAsync(hash: string, key: string, value: any): Promise<any>;
hdelAsync(hash: string, key: string): Promise<any>;
calcObjKey(objKey: object): string
oget(objKey: object): Promise<any>;
oset(objKey: object, value: any): Promise<any>;
odel(objKey: object): Promise<any>;
ohget(hash: string, objKey: object): Promise<any>;
ohset(hash: string, objKey: object, value: any): Promise<any>;
ohdel(hash: string, objKey: object): Promise<any>;
ogetAsync(key: object): Promise<any>;
osetAsync(key: object, value: any): Promise<any>;
odelAsync(key: object): Promise<any>;
ohgetAsync(hash: string, key: object): Promise<any>;
ohsetAsync(hash: string, key: object, value: any): Promise<any>;
ohdelAsync(hash: string, key: object): Promise<any>;
clear(): Promise<any>;
close(): Promise<any>;
}
export default ObjectKeyCache;