method

namespace_key

Importance_1
v6.0.0 - 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.