method

normalize_key

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.