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

rgcache

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rgcache

Little caching module.

latest
npmnpm
Version
1.3.12
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

rgcache

Little caching module.

Installing

npm install rgcache
yarn add rgcache

Example

let Cache = require('rgcache').Cache;
let aCache = new Cache({
    ttl: 600, loader: async (key) => {
        console.log("loader call");
        return key.toLowerCase();
    }
});

(async () => {
    console.log(await aCache.get("BAN"));
    await aCache.get("BAN");
    aCache.delete("BAN");
    await aCache.get("BAN");
    aCache.set("LOL", "lols");
    console.log(await aCache.get("LOL"))
    aCache.clear();
    console.log(await aCache.get("LOL"))
    console.log(aCache.stats());
})();

Keywords

cache

FAQs

Package last updated on 24 Dec 2025

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