buildKey() public method
Builds a normalized cache key from a given key.
If the given key is a string containing alphanumeric characters only and no more than 32 characters, then the key will be returned back prefixed with $keyPrefix. Otherwise, a normalized key is generated by serializing the given key, applying MD5 hashing, and prefixing with $keyPrefix.
public string buildKey ( $key ) | ||
---|---|---|
$key | mixed |
The key to be normalized |
return | string |
The generated cache key |
Please login to continue.