An SQLite-based store for node-cache-manager, version 0.2.0. Provides async SQLite caching using the sqlite3 package with support for WAL mode, allowing safe multiprocess cache sharing. Features optimized mset/mget, CBOR or JSON serialization (default CBOR), custom serializers, and automatic smart purging. It offers better resilience and performance compared to filesystem-based stores like node-cache-manager-fs-binary, benefiting from SQLite's ACID properties and faster local storage. The package has 100% test coverage and requires Node 14+.
npm install cache-manager-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic setup of cache-manager-sqlite with both in-memory and on-disk caches, including serialization options.
Use require('cache-manager-sqlite') or ensure your bundler/interpreter handles CJS modules.Pass the required factory function directly: store: require('cache-manager-sqlite')Explicitly set a unique 'name' per store to avoid collisions.
Use multiCaching([cache1, cache2]) instead of multiCaching(cache1, cache2).
Run 'npm install cache-manager-sqlite' and ensure it is listed in package.json.
Replace store: 'cache-manager-sqlite' with store: require('cache-manager-sqlite').Ensure the write permissions for the directory and let the store create tables on first use. If using a custom 'name', ensure the table is created.