class

Term2::Components::Memoization::MemoCache(K, V)

Inherits Reference < Object

Simple LRU memoization cache.

Constructors

new(capacity : Int32)
Source

Instance methods

capacity
Source
get(key : K) : Tuple(V | Nil, Bool)
Source
set(key : K, value : V)
Source
size
Source