Sha256: bb7b438e2a593d544d00f55ce2b16e11d5c6dff405da91157e26abebdf1eb66f
Contents?: true
Size: 492 Bytes
Versions: 2
Compression:
Stored size: 492 Bytes
Contents
module MarketoApi module Concerns module Caching # Public: Runs the block with caching disabled. # # block - A query/describe/etc. # # Returns the result of the block def without_caching(&block) options[:use_cache] = false block.call ensure options.delete(:use_cache) end private # Internal: Cache to use for the caching middleware def cache options[:cache] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
marketo_api-0.1.1.pre.alpha | lib/marketo_api/concerns/caching.rb |
marketo_api-0.0.7.pre.alpha | lib/marketo_api/concerns/caching.rb |