
Product
Introducing Data Exports
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.
# Get the latest release.
npm i cachu
import { Cache } from 'cachu'
const cache = new Cache({
maximumAge: '10m', // 10 minutes, can be specified as number (in seconds) or readable string
...
})
// Add a new record.
await cache.add('one', 'Hello World')
const record = await cache.get('one') // 'Hello World'
autodelete to delete overaged entries on adding/updating (disabled by default)maximumAge to set the maximum age for each record in the cache (defaults to 600s)maximumAmount to set the maximum size for the cache (defaults to 10000)maximumRecordSize to set the maximum size for each record (defaults to 10 KB)add()addMany()get()getMany()update()updateMany()remove()removeMany()has()size() (get the cache size in bytes)keys()values()clear() (delete all overaged records manually)FAQs
👾 A simple key-value cache for Node.js.
The npm package cachu receives a total of 7 weekly downloads. As such, cachu popularity was classified as not popular.
We found that cachu demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Product
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.