Universal Cache Engine for the Bajo Framework, version 2.7.0. Provides a modular caching abstraction supporting multiple backends (memory, Redis, filesystem) with configurable TTL, namespace isolation, and error handling. Designed specifically for Bajo-based applications but can be used standalone. Released under MIT license with low release cadence. Differentiates by deep integration with Bajo's plugin system and declarative config-driven setup.
npm install bajo-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating a cache instance with memory backend, set/get/delete operations, and switching to Redis driver.
Set driver: 'memory' in options if using default memory cache.
Check if (val === undefined) instead of if (!val).
Migrate to 'redis' or another supported driver.
Run 'npm install bajo-cache' and ensure your project has a package.json.
If using CommonJS, use 'const bajoCache = require('bajo-cache').default;' or use ES import syntax.Run 'npm install ioredis' (or the required Redis client) and ensure it's in your project.
No dependency data recorded yet.