Files
my-links/app/lib/cache.ts
2024-10-07 01:33:59 +02:00

11 lines
258 B
TypeScript

import { BentoCache, bentostore } from 'bentocache';
import { memoryDriver } from 'bentocache/drivers/memory';
export const cache = new BentoCache({
default: 'cache',
stores: {
cache: bentostore().useL1Layer(memoryDriver({ maxSize: 10_000 })),
},
});