cache-manager-bun-sqlite
v0.1.2
Published
Bun sqlite implementation for cache-manager
Downloads
5
Readme
Node Cache Manager store for Bun SQLite
bun:sqlite store for the node-cache-manager
Installation
bun install cache-manager-bun-sqlite
Usage Examples
import { caching } from 'cache-manager';
import { BunSqliteStore } from 'cache-manager-bun-sqlite';
const cache = caching(
BunSqliteStore({
name: 'test',
path: ':memory:',
ttl: 10, // in ms,
purgeInterval: 5 * 60 * 1000, // in ms
}),
);
await cache.set('foo', 'bar');
console.log(await cache.get('foo')); // 'bar'