src/Cache/Simple/AbstractAdapter.php
public function setMultiple($values, $ttl = null)
	{
		[$ttl, $expireTime] = $this->ttl($ttl);

		$namespacedValues = [];
		foreach ($values as $key => $value) {
			$this->validateKey($key);
			$this->namespace && $this->prefixValue($key);

			$namespacedValues[$key] = [true, $value, [], $expireTime];
		}

		return $this->doSetMultiple($namespacedValues, $ttl);
	}
public function setMultiple($values, $ttl = null)
	{
		[$ttl, $expireTime] = $this->ttl($ttl);

		$namespacedValues = [];
		foreach ($values as $key => $value) {
			$this->validateKey($key);
			$this->namespace && $this->prefixValue($key);

			$namespacedValues[$key] = [true, $value, [], $expireTime];
		}

		return $this->doSetMultiple($namespacedValues, $ttl);
	}
public function setMultiple ( $ values , $ ttl = null ) { [ $ ttl , $ expireTime ] = $ this -> ttl ( $ ttl ) ; $ namespacedValues = [ ] ; foreach ( $ values as $ key => $ value ) { $ this -> validateKey ( $ key ) ; $ this -> namespace && $ this -> prefixValue ( $ key ) ; $ namespacedValues [ $ key ] = [ true , $ value , [ ] , $ expireTime ] ; } return $ this -> doSetMultiple ( $ namespacedValues , $ ttl ) ; }
Returns a boolean value indicating if the operation succeeded.

@param iterable               $values Array of keys and values to save in cache
@param null|int|\DateInterval $ttl    The lifetime. If != 0, sets a specific lifetime for these
cache entries (0 => infinite lifeTime).

@return bool TRUE if the operation was successful, FALSE if it wasn't.
Returns a boolean value indicating if the operation succeeded .