instance method
middleware
Ruby on Rails 3.2.22.5
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 80
def middleware
@middleware ||= Middleware.new(
"ActiveSupport::Cache::Strategy::LocalCache",
thread_local_key)
end
Defined in activesupport/lib/active_support/cache/strategy/local_cache.rb line 80
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Strategy::LocalCache