struct

Shoo::Cache(T)

Inherits Struct < Value < Object

TODO: This should probably be an LRU cache Currently the cache is unbounded which although unlikely could result in memory issues

Constants

CACHE_KEY_JOIN = '/'

Constructors

Instance methods

fetch(key : Key, & : -> T) : T
Source
fetch(*keys : Key, &block : -> T) : T
Source

Nested types