Azu::Cache::MemoryStore
Inherits Azu::Cache::Store < Reference < Object
Memory-based cache store with LRU eviction
Constants
DEFAULT_MAX_SIZE = 1000
DEFAULT_TTL = Time::Span.new(hours: 1)
Constructors
new(max_size : Int32 = DEFAULT_MAX_SIZE, default_ttl : Time::Span | Nil = DEFAULT_TTL, cleanup_interval : Time::Span = 5.minutes)
SourceInstance methods
clear
SourceOverride decrement with atomic implementation
Override increment with atomic implementation
size
Source