@mconnect/cache

0.2.0 • Public • Published

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

Package Sidebar

Install

npm i @mconnect/cache

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

17 kB

Total Files

10

Last publish

Collaborators

  • abbeymart