lib/mongo/query_cache.rb
# Execute the block with the query cache disabled.
#
# @example Execute without the cache.
#   QueryCache.uncached { collection.find }
#
# @return [ Object ] The result of the block.
Execute the block with the query cache disabled.
Execute the block with the query cache disabled .
def uncached
        enabled = enabled?
        self.enabled = false
        begin
          yield
        ensure
          self.enabled = enabled
        end
      end
def uncached enabled = enabled? self . enabled = false begin yield ensure self . enabled = enabled end end
Execute the block with the query cache disabled.
Execute the block with the query cache disabled .
The result of the block.
The result of the block .
 Object 
example
Execute without the cache. QueryCache.uncached { collection.find }
Execute without the cache . QueryCache . uncached { collection . find }