Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cachu

Package Overview
Dependencies
Maintainers
2
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cachu - npm Package Versions

23
7

7.0.0

Diff

Changelog

Source

v7.0.0

Breaking Changes

  • changed the way you create a new cache.

    // before v7
    import { useCache } from 'cachu'
    
    const cache = useCache({
      maxAge: '10m',
      maxAmount: 10000,
      autodelete: false
    })
    
    // v7
    import { Cache } from 'cachu'
    
    const cache = new Cache({
      maximumAge: '10m',
      maximumAmount: 10000,
      autodelete: false
    })
    

New Features

  • you can now set a maximum size for each record.

    import { Cache } from 'cachu'
    
    const cache = new Cache({
      maximumRecordSize: '10 KB'
    
      // alternatively, you can specify the amount of bytes as a number
      maximumRecordSize: 10000
    })
    
azurybot
published 6.0.6 •

azurybot
published 6.0.5 •

azurybot
published 6.0.4 •

azurybot
published 6.0.3 •

azurybot
published 6.0.2 •

azurybot
published 6.0.1 •

azurybot
published 6.0.0 •

azurybot
published 6.0.0-canary.4 •

azurybot
published 6.0.0-canary.3 •

23
7
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc