@mconnect/cache
- Cache data operations - in memory (simple and hash cache)
Installation
$ npm install @mconnect/cache
API - Simple Cache
- Simple cache is key-value caching for any types of values (number, string and object)
- It exposes the following functions: setCache(), getCache, deleteCache and clearCache
- Simple cache API signatures:
const abc = 'test';
console.log('abc: ', abc);
Examples - Simple Cache
const abc = 'test';
console.log('abc: ', abc);
API - Hash Cache
const abc = 'test';
console.log('abc: ', abc);
Examples - Hash Cache
const abc = 'test';
console.log('abc: ', abc);