0.2.0 • Published 5 years ago

@mconnect/cache v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@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);