Skip to content

Commit

Permalink
Fix redis timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sdvcrx committed Dec 11, 2017
1 parent 56209bf commit 8621996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redisCacheDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class RedisCacheDriver extends CacheDriver {
set(key, data, timeout = CacheDriver.timeout) {
const item = new CacheItem(key, data, timeout)

if (timeout === 0) {
if (timeout !== 0) {
return redis.setAsync(key, item.toString(), 'EX', timeout)
.then(() => item)
} else {
Expand Down

0 comments on commit 8621996

Please sign in to comment.