class

Fetcher::CacheStore

Inherits Reference < Object

Actor-backed cache store that owns mutation for cache entries, eviction and stats.

Constructors

new(max_size : Int32 = 1000, enabled : Bool = true)
Source

Instance methods

cleanup
Source
clear
Source
clear_by_prefix(prefix : String)
Source
close

Gracefully stop the owner fiber and unregister cleanup. Call this when RequestConfig is no longer needed.

Source
enabled=(value : Bool)
Source
enabled?
Source
get(key : String) : Result | Nil
Source
max_size
Source
max_size=(value : Int32)
Source
set(key : String, value : Result, ttl : Time::Span)
Source
stats
Source

Nested types