method
escape_key
v3.1.0 -
Show latest stable
- Class:
ActiveSupport::Cache::MemCacheStore
escape_key(key)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.