Simple “Least Recently Used” (LRU) cache
MIT License
Bot releases are hidden (Show)
.maxSize
getter 187fa5bhttps://github.com/sindresorhus/quick-lru/compare/v6.1.2...v7.0.0
set()
method e964346https://github.com/sindresorhus/quick-lru/compare/v6.1.1...v6.1.2
toStringTag
(#39) 95593b6https://github.com/sindresorhus/quick-lru/compare/v6.1.0...v6.1.1
QuickLRU
a Map
subclass (#37) 2dd5b52https://github.com/sindresorhus/quick-lru/compare/v6.0.2...v6.1.0
maxAge
being set when used on .set()
(#36) 6a9c875https://github.com/sindresorhus/quick-lru/compare/v6.0.1...v6.0.2
https://github.com/sindresorhus/quick-lru/compare/v6.0.0...v6.0.1
npm i @alloc/quick-lru
.maxAge
option (#27) 85f49e2.resize()
method (#24) debb8de.size
(#23) 608e459https://github.com/sindresorhus/quick-lru/compare/v5.1.1...v6.0.0
https://github.com/sindresorhus/quick-lru/compare/v5.1.0...v5.1.1
onEviction
option (#20) b941c2fhttps://github.com/sindresorhus/quick-lru/compare/v5.0.0...v5.1.0
.size
not matching the maxSize
option (#16) e5b868bhttps://github.com/sindresorhus/quick-lru/compare/v4.0.1...v5.0.0
https://github.com/sindresorhus/quick-lru/compare/v4.0.0...v4.0.1
Breaking for TypeScript users only:
import quickLru from 'quick-lru';
to import quickLru = require('quick-lru');
https://github.com/sindresorhus/quick-lru/compare/v3.0.0...v4.0.0