Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (36 sloc) 788 Bytes
name usage names inherits properties methods
LruSet
var LruSet = require("collections/lru-set");
LruSet(values)
LruSet(values, capacity)
LruSet(values, capacity, equals, hash)
LruSet(values, capacity, equals, hash, getDefault)
generic-collection
generic-set
property-changes
range-changes
observable-object
observable-range
length
construct-clone
has-value
get-value
add-value
delete-value
one
clear
reduce
reduce-right
iterator
content-equals
content-hash

A set with a maximum capacity that will evict the least recently used value.

--- |

An LruSet is backed by a Set and uses the set’s own insertion order list to track which value was least recently used.