Skip to content

2398kamalrkk/do-cache-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

free-cache

Simple cache tool with required functions | easy to use.

Installation

npm install free-cache --save

Usage

var freeCache = require('free-cache');

// now ready to to use the cache

freeCache.put('email', 'my-email-id', true);
console.log(freeCache.get('email'));

// set timeout for specific key-value

freeCache.put('token', 'token-to-expire', true, 1000); // Time in ms

// set overwrite to false for a key for data integrity

freeCache.put('id', 'dont-overwrite-me', false);

//other functions
freeCache.delete('id');

console.log(freeCache.memsize('id'));

console.log(freeCache.getAllKeys('id'));

About

Simple runtime cache with required functions | easy to use.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published