Skip to content

Commit

Permalink
update ioredis
Browse files Browse the repository at this point in the history
  • Loading branch information
lagden committed Apr 12, 2020
1 parent ddc6468 commit 9ad8f19
Show file tree
Hide file tree
Showing 3 changed files with 308 additions and 218 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Cache {
let args = [key, _value]

if (expire === 'EX' || expire === 'PX') {
args = [...args, expire, isNaN(_ttl) ? 0 : _ttl]
args = [...args, expire, Number.isNaN(_ttl) ? 0 : _ttl]
}

const [[, set], [, sadd]] = await this.redis
Expand Down
Loading

0 comments on commit 9ad8f19

Please sign in to comment.