mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fix #17119: Fix yii\caching\Cache::multiSet()
to use yii\caching\Cache::$defaultDuration
when no duration is passed
This commit is contained in:
@ -112,13 +112,14 @@ interface CacheInterface extends \ArrayAccess
|
||||
* expiration time will be replaced with the new ones, respectively.
|
||||
*
|
||||
* @param array $items the items to be cached, as key-value pairs.
|
||||
* @param int $duration default number of seconds in which the cached values will expire. 0 means never expire.
|
||||
* @param int $duration default duration in seconds before the cache will expire. If not set,
|
||||
* default [[defaultDuration]] value is used.
|
||||
* @param Dependency $dependency dependency of the cached items. If the dependency changes,
|
||||
* the corresponding values in the cache will be invalidated when it is fetched via [[get()]].
|
||||
* This parameter is ignored if [[serializer]] is false.
|
||||
* @return array array of failed keys
|
||||
*/
|
||||
public function multiSet($items, $duration = 0, $dependency = null);
|
||||
public function multiSet($items, $duration = null, $dependency = null);
|
||||
|
||||
/**
|
||||
* Stores a value identified by a key into cache if the cache does not contain this key.
|
||||
|
Reference in New Issue
Block a user