Module: Firebolt::Keys

Included in:
Cache, Warmer
Defined in:
lib/firebolt/keys.rb

Instance Method Summary collapse

Instance Method Details

#cache_key(key_suffix) ⇒ Object



3
4
5
# File 'lib/firebolt/keys.rb', line 3

def cache_key(key_suffix)
  "#{namespace}.#{key_suffix}"
end

#cache_key_with_salt(key_suffix, salt) ⇒ Object



7
8
9
# File 'lib/firebolt/keys.rb', line 7

def cache_key_with_salt(key_suffix, salt)
  "#{namespace}.#{salt}.#{key_suffix}"
end

#namespaceObject



11
12
13
# File 'lib/firebolt/keys.rb', line 11

def namespace
  ::Firebolt.config.namespace
end

#salt_keyObject



15
16
17
# File 'lib/firebolt/keys.rb', line 15

def salt_key
  cache_key(:salt)
end