@biscuitland/cache
v2.3.0
Published
A resource control cache layer, based on carriers and resource-intensive policies
Downloads
26
Readme
@biscuitland/cache
Most importantly, biscuit's cache is:
A resource control cache layer, based on carriers and resource-intensive policies
Install (for node18)
npm install @biscuitland/cache
Example (Basic)
import { Cache, MemoryCacheAdapter } from '@biscuitland/cache';
const bootstrap = async () => {
const cache = new Cache({
adapter: new MemoryCacheAdapter(),
});
// You can listen to the raw biscuit event
cache.start(<payloads>);
};
bootstrap();