Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (29 sloc) 732 Bytes
name usage names inherits properties methods
LfuMap
var LfuMap = require("collections/lfu-map");
LfuMap()
LfuMap(values)
LfuMap(values, capacity)
LfuMap(values, capacity, equals, hash)
LfuMap(values, capacity, equals, hash, getDefault)
generic-collection
generic-map
property-changes
observable-object
length
construct-clone
lfu-map-log
lfu-map-stringify
lfu-add-map-change-listener
content-equals
content-hash

A map with a maximum capacity that will evict the least frequently used entry.

--- |

An LfuMap is backed by an LfuSet of [key, value] entries, with contentEquals and contentHash overriden to only consider the key.