class

Bubbles::Internal::Memoization::MemoCache(H, T)

Inherits Reference < Object

MemoCache is an LRU cache with fixed capacity.

Constructors

new(capacity : Int32)
Source

Instance methods

capacity
Source
get(h : H) : Tuple(T | Nil, Bool)
Source
set(h : H, value : T)
Source
size
Source