New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

free-cache

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

free-cache

Simple cache tool with required functions | easy to use.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

node

FAQs

Package last updated on 19 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts