Skip to content

Commit 966c113

Browse files
committed
Bump redis from 3.0.2 to 4.3.1
1 parent 0c9636c commit 966c113

File tree

6 files changed

+1434
-961
lines changed

6 files changed

+1434
-961
lines changed

dist/index.d.ts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1-
import { Store } from "cache-manager";
2-
import { RedisClient } from "redis";
1+
import type { Store, StoreConfig } from "cache-manager";
2+
import type { RedisClientType, RedisClientOptions } from "redis";
33

44
interface RedisStore extends Store {
5-
getClient: () => RedisClient;
5+
name: string;
6+
getClient: () => RedisClientType;
7+
isCacheableValue: any;
8+
set: (key: any, value: any, options: any, cb: any) => Promise<any>;
9+
get: (key: any, options: any, cb: any) => Promise<any>;
10+
del: (...args: any[]) => Promise<any>;
11+
mset: (...args: any[]) => Promise<any>;
12+
mget: (...args: any[]) => Promise<any>;
13+
mdel: (...args: any[]) => Promise<any>;
14+
reset: (cb: any) => Promise<any>;
15+
keys: (pattern: string, cb: any) => Promise<any>;
16+
ttl: (key: any, cb: any) => Promise<any>;
617
}
718

8-
export default RedisStore;
19+
export function redisStore(config: RedisClientOptions & StoreConfig): Promise<RedisStore>;

0 commit comments

Comments
 (0)