fast-memory-cache
Simple in-memory cache implementation for Node.js
Installation
npm install --save fast-memory-cache
Usage example
var MemoryCache = ; // Create cachevar cache = ; // Get/set valuevar val = cache; // undefinedcache;val = cache; // 'value' // Delete valuecache;val = cache; // undefined // Set value which will expire after 1 secondcache;;
Running tests
npm install
npm test