mset() public method
Stores multiple items in cache. Each item contains a value identified by a key. If the cache already contains such a key, the existing value and expiration time will be replaced with the new ones, respectively.
public boolean mset ( $items, $duration = 0, $dependency = null )$items array
The items to be cached, as key-value pairs. $duration integer
Default number of seconds in which the cached values will expire. 0 means never expire. $dependency yii\caching\Depen