package lru
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Scalable LRU caches
Install
dune-project
Dependency
Authors
Maintainers
Sources
lru-v0.3.0.tbz
sha256=84efe3e123c89e2622f973eef4483fbfc0943c27844a0e3aa2b504cc4ecb69a9
md5=ecaa8c9f5f708879140961ce35bcdba4
doc/CHANGES.html
v0.3.0 2019-04-09
Semantics cleanup.
Breaking:
finddrops?promoteand never changes the ordering.adddrops?trimand never drops bindings.size->weightitems->sizeunadd->popF.S.foldandF.S.iteriterate in LRU order.F.M.foldandF.M.iterdrop?dirand always iterate in LRU order.
Other:
- add
F.S.fold_kandF.S.iter_k
To fix client code:
- replace
find ~promote:falsewithfind; - replace
findandfind ~promote:truewithfindandpromote; - replace
add ~trim:falsewithadd; - replace
addandadd ~trim:truewithaddandtrim; s/size/weight/g,s/items/size/g,s/unadd/pop/g;- audit uses of
foldanditerfor order-sensitivity.
v0.2.0 2017-03-31
Breaking changes:
resizeno longer drops bindings if the new size pushes the queue over capacity.of_listhas simpler semantics; dropped thecapparameter.
Other changes:
- Replace
Lru.M.cachewith more generalLru.memo. - Queues with 0 initial capacity are legal.
- Add
trimto shrink a queue to its capacity, as queues are no longer guaranteed to have size smaller than capacity. findgets thepromoteparameter, allowing queries that do not change the order.addgets thetrimparameter, allowing insertions that do not drop old entries.
v0.1.1 2016-11-28
- Fix missing dep on
psqin META.
v0.1.0 2016-11-22
First release.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page