caching\Cache buildKey()

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

doc_Yii
2016-10-30 16:53:49
Comments
Leave a Comment

Please login to continue.