Skip to content

cache is not global now#62

Closed
simon300000 wants to merge 1 commit into
ptarjan:masterfrom
simon300000:master
Closed

cache is not global now#62
simon300000 wants to merge 1 commit into
ptarjan:masterfrom
simon300000:master

Conversation

@simon300000
Copy link
Copy Markdown

My english is bad so I didn’t change README

const cache = require('memory-cache');
const cache2 = require('memory-cache');

cache.put('foo', '233');
cache2.put('foo', '666');

console.log(cache.get('foo'))//233
console.log(cache2.get('foo'))//666

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant