Method: Firebolt::Cache#fetch

Defined in:
lib/firebolt/cache.rb

#fetch(key_suffix, options = nil, &block) ⇒ Object



12
13
14
15
16
17
# File 'lib/firebolt/cache.rb', line 12

def fetch(key_suffix, options = nil, &block)
  salted_key = cache_key_with_salt(key_suffix, salt)
  return nil if salted_key.nil?

  ::Firebolt.config.cache.fetch(salted_key, options, &block)
end