What is Bentocache?
mainBentocache is a robust, full-featured multi-tier caching library for Node.js applications. Unlike simple cache bridges, it provides advanced features for high-performance and resilient caching, including multi-layer support, cache stampede protection, and synchronization across multiple instances.
Key capabilities include:
- Multi-tier caching: Combines fast local in-memory (L1) with persistent distributed (L2) caches.
- Resiliency: Features like grace periods and timeouts allow serving stale data if the backend or factory is slow/down.
- Advanced Management: Supports Namespaces for grouping keys, Tagging for easy invalidation, and TTLs in human-readable formats.
- Observability: Built-in event emission, OpenTelemetry instrumentation, and Prometheus integration.