Skip to content

Commit

Permalink
Merge pull request #2 from kunalkukreja/bugfix-invalidate
Browse files Browse the repository at this point in the history
Fixed key creation logic in invalidate function
  • Loading branch information
qzaidi committed Nov 21, 2014
2 parents 844f725 + ae37edb commit 1f486d4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion index.js
Expand Up @@ -192,7 +192,6 @@ var cache = {
this.invalidate = function() {
var args = Array.prototype.slice.apply(arguments);
var func = args.shift();
var res = args.pop();
var fname,key;

if (!func || typeof(func) != 'function' || !func.cacheName) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "obcache",
"version": "0.0.13",
"version": "0.0.14",
"description": "Object Caching",
"main": "index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions redis.js
Expand Up @@ -71,6 +71,7 @@ var redisStore = {
},

expire: function(key,cb) {
key = prefix + key;
client.expire(key,0,cb || function() {});
},

Expand Down

0 comments on commit 1f486d4

Please sign in to comment.