Alumna::MemoryCache
Inherits Alumna::Cache < Reference < Object
In-process byte cache. Use one instance per process (single backend). Swap for a Redis Cache to share entries across processes.
Expiry uses Time.instant (monotonic). No background fiber. Expired rows
are dropped on get and by an amortized prune every cleanup_every
writes/reads, same as MemorySessionStore.
Constructors
Instance methods
Atomic +1. Missing, expired, or non-integer values start at 1. The stored counter has no TTL.
True if the key was missing or expired and this call stored the value.