module Frodo::Concerns::Caching

Public Instance Methods

without_caching() { || ... } click to toggle source

Public: Runs the block with caching disabled.

block - A query/describe/etc.

Returns the result of the block

# File lib/frodo/concerns/caching.rb, line 11
def without_caching
  options[:use_cache] = false
  yield
ensure
  options.delete(:use_cache)
end

Private Instance Methods

cache() click to toggle source

Internal: Cache to use for the caching middleware

# File lib/frodo/concerns/caching.rb, line 21
def cache
  options[:cache]
end