instore-cache

1.0.0 • Public • Published

instore-cache

node module to cache instore.


Install.

npm install instore-cache
 
# yarn  
yarn add instore-cache
 

Looking to cache access token your application.

You can use expirable-cache which caches until the time exceeds the expiry time.

const { expirableCache } = require('instore-cache');
expirableCache.set('SAMPLE_KEY_EXPIRY', "121241323qweerttyysdf", 10);
expirableCache.get('SAMPLE_KEY_EXPIRY');

Features

  • you can specify the expiration time and provide the callback which calls after time has been expired.

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i instore-cache

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    6.3 kB

    Total Files

    7

    Last publish

    Collaborators

    • pajay