0.1.2 • Published 11 months ago

cache-manager-bun-sqlite v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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'
0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

12 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago