Overview of Bentocache multi-tier caching
Bentocache is a full-featured caching library for Node.js designed for performance and flexibility. It supports two primary modes of operation:
- One-level mode: A standard caching method using a single driver (e.g., Redis, In-Memory, Filesystem, DynamoDB).
- Two-levels mode: A high-performance setup combining a local L1 cache (In-memory LRU) and a distributed L2 cache (e.g., Redis). In multi-instance environments, local caches can be synchronized via a Bus (Redis or RabbitMQ) to maintain integrity across instances.