class Mongoid::QueryCache::Middleware
The middleware to be added to a rack application in order to activate the query cache.
@since 4.0.0
Public Class Methods
Public Instance Methods
Source
# File lib/mongoid/query_cache.rb, line 161 def call(env) QueryCache.cache do @app.call(env) end ensure QueryCache.clear_cache end