@mconnect/cache
v0.2.0
Published
Cache data operations
Downloads
6
Maintainers
Readme
@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:
// Coming soon
const abc = 'test';
console.log('abc: ', abc);
Examples - Simple Cache
// Coming soon
//
const abc = 'test';
console.log('abc: ', abc);
API - Hash Cache
// Coming soon
const abc = 'test';
console.log('abc: ', abc);
Examples - Hash Cache
// Coming soon
//
const abc = 'test';
console.log('abc: ', abc);