Browse Source

added phpdoc block for mset()

tags/2.0.0-beta
Panagiotis Moustafellos 11 years ago
parent
commit
8f8adb2a48
  1. 15
      framework/yii/caching/Cache.php

15
framework/yii/caching/Cache.php

@ -216,6 +216,21 @@ abstract class Cache extends Component implements \ArrayAccess
}
/**
* 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.
*
* @param array $items the items to be cached, as key-value pairs. Each key can be a simple string or
* a complex data structure consisting of factors representing the key.
* @param integer $expire the number of seconds in which the cached value will expire. 0 means never expire.
* @return boolean whether the items are successfully stored into cache
*/
public function mset($items, $expire = 0)
{
return false;
}
/**
* Stores a value identified by a key into cache if the cache does not contain this key.
* Nothing will be done if the cache already contains the key.
* @param mixed $key a key identifying the value to be cached value. This can be a simple string or

Loading…
Cancel
Save