# File lib/active_support/cache/strategy/local_cache.rb, line 55 def middleware @middleware ||= begin klass = Class.new klass.class_eval("class << self\ndef name\n\"ActiveSupport::Cache::Strategy::LocalCache\"\nend\nalias :to_s :name\nend\n\ndef initialize(app)\n@app = app\nend\n\ndef call(env)\nThread.current[:\#{thread_local_key}] = LocalStore.new\n@app.call(env)\nensure\nThread.current[:\#{thread_local_key}] = nil\nend\n", __FILE__, __LINE__ + 1) klass end end