5.1.6 • Published 1 year ago

@resolid/cache-manager-sqlite v5.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

SQLite store for cache manager

A new SQLite cache store for cache-manager.

Featuring:

  • using better-sqlite3
  • 100% test coverage and production ready
  • Optimized mset/mget support
  • ESM only

Installation

npm i @resolid/cache-manager-sqlite

Requirements

Usage

import { sqliteStore } from '@resolid/cache-manager-sqlite';
import cacheManager,{ createCache } from "cache-manager";
import { join } from 'node:path';

// SQLite :memory: cache store
const memStoreCache = await cacheManager.caching(sqliteStore({cacheTableName: 'caches'}));

// On disk cache on caches table
const sqliteStoreCache = await cacheManager.caching(sqliteStore({sqliteFile: join(process.cwd(), 'cache.sqlite3'), cacheTableName: 'caches'}));

// SQLite :memory: cache store sync version
const memStoreCache = createCache(sqliteStore({cacheTableName: 'caches'}));

// On disk cache on caches table sync version
const sqliteStoreCache = createCache(sqliteStore({sqliteFile: join(process.cwd(), 'cache.sqlite3'), cacheTableName: 'caches'}))

License

MIT.

Thanks

Thanks to JetBrains for the OSS development license.

JetBrain

5.1.6

1 year ago

5.1.5

1 year ago

5.1.4

1 year ago

5.1.3

1 year ago

5.1.2

1 year ago

5.1.1

1 year ago

5.1.0

1 year ago

5.0.0

1 year ago