method

namespace_key

Importance_1
v5.2.3 - Show latest stable - 0 notes - Class: ActiveSupport::Cache::Store
namespace_key(key, options = nil) private

Prefix the key with a namespace string:

namespace_key 'foo', namespace: 'cache' # => 'cache:foo' 

With a namespace block:

namespace_key 'foo', namespace: -> { 'cache' } # => 'cache:foo'
Show source
Register or log in to add new notes.