@resolid/cache-file
v0.1.1
Published
File Cache store for @resolid/cache
Maintainers
Readme
File Cache store for @resolid/cache
Documentation | Framework Bundle
A simple file-based cache implementation for Node.js with TTL support and concurrency-safe locks.
Installation
pnpm add @resolid/cache @resolid/cache-file
# or
npm install @resolid/cache @resolid/cache-file
# or
yarn add @resolid/cache @resolid/cache-file
# or
bun add @resolid/cache @resolid/cache-fileUsage
import { Cacher } from "@resolid/cache";
import { FileCache } from "@resolid/cache";
const cache = new Cacher({ store: new FileCache("./.tmp/cache"), defaultTtl: 1000 });License
MIT License (MIT). Please see LICENSE for more information.
