Socket
Book a DemoInstallSign in
Socket

throwaway-local-cache

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

throwaway-local-cache

Maintain a fast local cache when persistance isnt a 100% requirement

latest
Source
npmnpm
Version
1.3.0
Version published
Weekly downloads
96
17.07%
Maintainers
1
Weekly downloads
 
Created
Source

throwaway-local-cache

npm install throwaway-local-cache

Usage

const Cache = require('throwaway-local-cache')

const c = new Cache('./cache') // pass the local folder to use

await c.get('key') // get an entry

c.queuePut('key', { value: true }) // queue a put, will be persisted later
c.queueDelete('key') // queue a deletion, will be persisted later

await c.flush() // force persist it

License

Apache-2.0

FAQs

Package last updated on 01 Oct 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