CodeExplorer setMulti example
if ($lifetime &&
$lifetime > 30 * 86400
) { $lifetime +=
time();
} $encodedValues =
[];
foreach ($values as $key =>
$value) { $encodedValues[self::
encodeKey($key)] =
$value;
} return $this->
checkResultCode($this->
getClient()->
setMulti($encodedValues,
$lifetime)) ?
$failed : false;
} protected function doFetch(array
$ids): iterable
{ try { $encodedIds =
array_map([__CLASS__, 'encodeKey'
],
$ids);
$encodedResult =
$this->
checkResultCode($this->
getClient()->
getMulti($encodedIds));
$result =
[];
foreach ($encodedResult as $key =>
$value) {