-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
26 lines (24 loc) · 947 Bytes
/
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
/* tslint:disable */
/* eslint-disable */
/* auto-generated by NAPI-RS */
export class RedisClient {
constructor(url: string)
reconnect(): void
connectionOpen(): boolean
get(key: string): string | Record<string, string> | null
expectString(args: Array<string>): string
expectArray(args: Array<string>): Array<string>
expectInteger(args: Array<string>): number
expectNil(args: Array<string>): void
cmdGET(key: string): string | null
cmdSET(key: string, value: string): void
cmdLPUSH(key: string, value: Array<string>): void
cmdLPOP(key: string, count: number): Array<string> | null
cmdHSET(key: string, field: string, value: string): void
cmdHGET(key: string, field: string): string | null
cmdHGETALL(key: string): Record<string, string> | null
cmdEXPIRE(key: string, seconds: number): number
cmdDEL(key: string | Array<string>): number
cmdKEYS(pattern: string): Array<string>
cmdTYPE(key: string): string
}