module Restforce::Client::Caching

def cache

Internal: Cache to use for the caching middleware
def cache
  @options[:cache]
end

def without_caching(&block)

Returns the result of the block

block - A query/describe/etc.

Public: Runs the block with caching disabled.
def without_caching(&block)
  @options[:use_cache] = false
  block.call
ensure
  @options.delete(:use_cache)
end