Skip to content

Commit

Permalink
add ttl and setex definitions (#1732)
Browse files Browse the repository at this point in the history
  • Loading branch information
quentin- authored and gantoine committed Jan 15, 2018
1 parent e5deb36 commit 70b5d22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions definitions/npm/redis_v2.x.x/flow_v0.34.x-/redis_v2.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ declare module "redis" {
hdel: (topic: string, key: string) => number;
get: (key: string, (Error | null, string | null) => void) => void;
set: (key: string, value: string, cb?: (error: Error | null) => void) => void;
setex: (key: string, timeout: string | number, value: string, callback?: (error: ?Error, result: ?string) => void) => void;
ttl: (key: string, callback: (error: ?Error, ttl: ?number) => void) => void;
del: (keys: Array<string>, cb?: (Error | null) => void) => void;
mget: (keys: Array<string>, (Error | null, Array<string | null>) => void) => void;
mset: (keysAndValues: Array<string>, cb?: (Error | null) => void) => void;
Expand Down

0 comments on commit 70b5d22

Please sign in to comment.