From f8f5b05f3a9c5b18c3c19b22fd96bfc1da7fcf96 Mon Sep 17 00:00:00 2001 From: Kunal Kukreja Date: Thu, 20 Nov 2014 00:33:16 +0530 Subject: [PATCH 1/2] bugfix: Fixed key creation logic in invalidate function --- index.js | 1 - redis.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 41a07ab..7aef539 100644 --- a/index.js +++ b/index.js @@ -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) { diff --git a/redis.js b/redis.js index 42d4ae5..3bc39a2 100644 --- a/redis.js +++ b/redis.js @@ -71,6 +71,7 @@ var redisStore = { }, expire: function(key,cb) { + key = prefix + key; client.expire(key,0,cb || function() {}); }, From ae37edbd6b201e4537f83840ed0bc510ad16819f Mon Sep 17 00:00:00 2001 From: Kunal Kukreja Date: Thu, 20 Nov 2014 00:44:46 +0530 Subject: [PATCH 2/2] bumped version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c7df9c5..3069ce0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obcache", - "version": "0.0.13", + "version": "0.0.14", "description": "Object Caching", "main": "index.js", "scripts": {