lru_map

v0.4.1
Finite key-value map using the Least Recently Used (LRU) algorithm where the most recently used objects are keept in the map while less recently used items are evicted to make room for new ones.
cache lru buffer map

test

npm run build && node test.js && echo 'Verifying TypeScript definition...' && tsc --noEmit

build

esbuild --minify --sourcemap --target=es2016 --outfile=dist/lru.js lru.js

prepublishOnly

npm test

benchmark

node --expose-gc benchmark.js
npm i lru_map

Metadata

  • MIT
  • Whatever
  • Rasmus Andersson
  • released 10/22/2020

Downloads

Maintainers