instance method
middleware
Ruby on Rails 5.2.8.1
Since v2.3.18Signature
middleware()
Middleware class can be inserted as a Rack handler to be local cache for the duration of request.
Source
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 89
def middleware
@middleware ||= Middleware.new(
"ActiveSupport::Cache::Strategy::LocalCache",
local_cache_key)
end
Defined in activesupport/lib/active_support/cache/strategy/local_cache.rb line 89
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Strategy::LocalCache