Browse Source

Merge pull request #7 from evanlucas/feature/setex

Expose setex if exists and is a function
parallel-requests-fix
Bryan Donovan 11 years ago
parent
commit
32c6b80b25
  1. 4
      lib/caching.js

4
lib/caching.js

@ -58,6 +58,10 @@ var caching = function (args) {
self.del = self.store.del.bind(self.store);
if (typeof self.store.setex === 'function') {
self.setex = self.store.setex.bind(self.store);
}
if (typeof self.store.reset === 'function') {
self.reset = self.store.reset.bind(self.store);
}

Loading…
Cancel
Save