mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 21:16:09 +00:00
@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();