lru-cache vocabulary
Factor handbook ยป Vocabulary index


Summary
Least Recently Used (LRU) cache

Metadata
Tags:collections, assocs
Authors:John Benediktsson


Words

Tuple classes
ClassSuperclassSlots
fifo-cache linked-assocmax-size
lifo-cache linked-assocmax-size
lru-cache linked-assocmax-size


Ordinary words
WordStack effect
<fifo-cache>( max-size exemplar -- assoc )
<fifo-hash>( max-size -- assoc )
<lifo-cache>( max-size exemplar -- assoc )
<lifo-hash>( max-size -- assoc )
<lru-cache>( max-size exemplar -- assoc )
<lru-hash>( max-size -- assoc )


Class predicate words
WordStack effect
fifo-cache?( object -- ? )
lifo-cache?( object -- ? )
lru-cache?( object -- ? )


Files


Metadata files