basic-cache
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -32,6 +32,6 @@ 'use strict'; | ||
if(typeof data !== 'undefined') { | ||
if(_.isUndefined(data)) { | ||
return null; | ||
}else{ | ||
return data.value; | ||
}else{ | ||
return null; | ||
} | ||
@@ -38,0 +38,0 @@ }; |
{ | ||
"name": "basic-cache", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "lib/basic-cache.js", | ||
@@ -5,0 +5,0 @@ "description": "The most basic memory caching module ever.", |
@@ -84,6 +84,2 @@ # basic-cache | ||
If you wish to namespace different cache collections there are a few ways to accomplish this. | ||
### Key Labels | ||
```javascript | ||
@@ -96,15 +92,2 @@ var cache = require('basic-cache'); | ||
### Cache Object | ||
```javascript | ||
var cache = require('basic-cache'); | ||
var multicache = { | ||
namespace1: cache, | ||
namespace2: cache | ||
}; | ||
multicache.namespace1.set('company', 'MadGlory'); | ||
multicache.namespace2.set('company', 'Company 2'); | ||
``` | ||
## Contributing | ||
@@ -111,0 +94,0 @@ In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/). |
7776
96