method

namespace_key

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 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.