Skip to content

Commit

Permalink
Bump redis from 3.0.2 to 4.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dabroek committed Oct 15, 2022
1 parent 0c9636c commit 966c113
Show file tree
Hide file tree
Showing 6 changed files with 1,434 additions and 961 deletions.
19 changes: 15 additions & 4 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
import { Store } from "cache-manager";
import { RedisClient } from "redis";
import type { Store, StoreConfig } from "cache-manager";
import type { RedisClientType, RedisClientOptions } from "redis";

interface RedisStore extends Store {
getClient: () => RedisClient;
name: string;
getClient: () => RedisClientType;
isCacheableValue: any;
set: (key: any, value: any, options: any, cb: any) => Promise<any>;
get: (key: any, options: any, cb: any) => Promise<any>;
del: (...args: any[]) => Promise<any>;
mset: (...args: any[]) => Promise<any>;
mget: (...args: any[]) => Promise<any>;
mdel: (...args: any[]) => Promise<any>;
reset: (cb: any) => Promise<any>;
keys: (pattern: string, cb: any) => Promise<any>;
ttl: (key: any, cb: any) => Promise<any>;
}

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

0 comments on commit 966c113

Please sign in to comment.