Local Cache Strategy
Caches that implement LocalCache
will be backed by an in-memory cache for the duration of a block. Repeated calls to the cache for the same key will hit the in-memory cache for faster access.
Namespace
Methods
Instance Public methods
local_cache() Link
The current local cache.
middleware() Link
Middleware class can be inserted as a Rack handler to be local cache for the duration of request.
new_local_cache() Link
Set a new local cache.
unset_local_cache() Link
Unset the current local cache.