class AbstractBuilder::NullCache
Public Instance Methods
fetch(key, _options = nil, &block)
click to toggle source
# File lib/abstract_builder/null_cache.rb, line 3 def fetch(key, _options = nil, &block) block.call end
fetch_multi(*keys, options, &block)
click to toggle source
# File lib/abstract_builder/null_cache.rb, line 7 def fetch_multi(*keys, options, &block) result = {} keys.each do |key| result[key] = fetch(key, options) do block.call(key) end end result end