Skip to content

Commit

Permalink
Storage identification name. Might be handy ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigodines committed Dec 2, 2015
1 parent b1f35d4 commit 2c2307a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions storage/ff_memcache.js
Expand Up @@ -4,6 +4,7 @@
var ff_memcache = function(servers, options) {
var mc = _memjs.Client.create(servers, options);
return {
name: 'memcache',
set: function(key, value, cb) {
mc.set(key, value, cb);
},
Expand Down
1 change: 1 addition & 0 deletions storage/ff_memory.js
Expand Up @@ -11,6 +11,7 @@
**/

return {
name: 'memory',
set: function(key, value, cb) {
features[key] = value;
cb(null, features[key]);
Expand Down
1 change: 1 addition & 0 deletions storage/ff_redis.js
Expand Up @@ -6,6 +6,7 @@
var redis = _redis.createClient(port, host, options);
/* public methods*/
return {
name: 'redis',
set: function (key, value, cb) {
redis.set(key, value, function (err, data) {
if (!cb) {
Expand Down

0 comments on commit 2c2307a

Please sign in to comment.