Skip to content

nxht/cache-manager-bun-sqlite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 { createCache } from 'cache-manager';
import { BunSqliteStore } from 'cache-manager-bun-sqlite';

const cache = createCache(
  BunSqliteStore({
    name: 'test',
    path: ':memory:',
    ttl: 10, // in ms,
  }),
);

await cache.set('foo', 'bar');
console.log(await cache.get('foo')); // 'bar'