Sieve
a simple yet efficient cache, original introduction
Usage
install via npm: npm install @zf/sieve
import { SieveCache } from '@zf/sieve'
const cache = new SieveCache<string>(3 /* capacity */)
cache.setItem('key', 'value')
cache.getItem('key')
Dev
deno test --allow-all -- --update
deno run --allow-all build_npm.ts 1.0.0