method

normalize_key

rails latest stable - Class: ActiveSupport::Cache::MemCacheStore
normalize_key(key, options)
private

Memcache keys are binaries. So we need to force their encoding to binary before applying the regular expression to ensure we are escaping all characters properly.