New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

basic-cache

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basic-cache - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

6

lib/basic-cache.js

@@ -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/).

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc