mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
1.1 KiB
1.1 KiB
@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();