ActiveSupport::Cache::Strategy::LocalCache

module ActiveSupport::Cache::Strategy::LocalCache

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.

Public Instance Methods

middleware() Show source

Middleware class can be inserted as a Rack handler to be local cache for the duration of requ