caching\Cache mget()

mget() public method

Retrieves multiple values from cache with the specified keys.

Some caches (such as memcache, apc) allow retrieving multiple cached values at the same time, which may improve the performance. In case a cache does not support this feature natively, this method will try to simulate it.

public array mget ( $keys )
$keys string[]

List of string keys identifying the cached values

return array

List of cached values corresponding to the specified keys. The array is returned in terms of (key, value) pairs. If a value is not cached or expired, the corresponding array value will be false.

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

Please login to continue.