Skip to content
Search

Cacheable

lastmod 2024-11-18created 2024-11-181 edits

a robust, scalable, and maintained set of caching packages

A Keyv-based caching package for Node.js

Projects

Caching solution packages usable across many kinds of projects

  • cacheable : Next-generation caching framework. Layer 1 / layer 2 caching designed and built from the ground up. Strong in distributed caching and scalability
  • cache-manager : Used in services such as NestJS, provides powerful features such as wrap. Widely used across many applications
  • cacheable-request : Adds caching to native HTTP requests. Supports RFC-compliant caching. Makes it easy to apply caching to network requests
  • flat-cache : Fast in-memory caching with file storage persistence. Fast memory access while still being able to store cache data in a file
  • file-entry-cache : Lightweight cache for file metadata. Suited to processes that handle a specific set of files; reprocesses only files changed since the last run
  • @cacheable/node-cache : Alternative package to node-cache

Cacheable

  • High-performance layer 1 / layer 2 caching engine focused on distributed caching
  • Enterprise features such as CacheSync planned
  • Built on the Keyv storage engine for robust performance
  • Caches and retrieves data with a simple API
  • Key features
    • Simple, intuitive API
    • Lightweight structure with no unnecessary modules
    • Uses a reliable, extensible storage engine via Keyv
    • Memory Caching with LRU (Least Recently Used) and expiration cache support
    • Resilient to failures through error recovery and offline support
    • Wrap / Memoization support for synchronous and asynchronous functions
    • Hooks and event handling to extend functionality
    • Simple TTL (time limit) settings in milliseconds (1 minute = 60000ms, 1 hour = 3600000ms, 1 day = 86400000ms)
    • Non-blocking layer 2 caching operations
    • Pub/Sub-based distributed caching sync (coming soon)
    • Comprehensive testing and code coverage
    • ESM and CommonJS support, compatible with Typescript

See also

Favorite site

author Zer0 sitemap