=============================================================================
Memory-Bounded Map
Hash map with memory limits - used for rate limiter state, etc.
Constants
Log = ::
Log.for("bounded_map")
Constructors
new(memory_module :
MemoryModule, entry_size_bytes :
Int64 = 128_i64)
SourceInstance methods
delete(key : K) : V | Nil
Sourceget_or_create(key : K, &block : -> V) : V | Nil
Get or create with factory
Sourceset(key :
K, value :
V) :
Bool Set value (returns false if memory limit reached)
Source