omni-cache
Simple memory cache from server side.
How to
Install
npm i --save omni-cacheoryarn add omni-cache
Use
Without options on create
const Cache = ;const cache = ;cache; // Time im mscache; // myValuecache; // [ 'myKey' ]cachesize; // 1cache; // No returncache; // truecache; // truecache; // truecacheclear; // No return
With options on create
const Cache = ;const cache =debug: truettl: 1500;cache; // Expire time id ttl by defaultcache; // myValuecache; // [ 'myKey' ]cachesize; // 1cache; // truecache; // No returncache; // falsecache; // truecache; // truecacheclear; // No return