|
@@ 342-352 (lines=11) @@
|
| 339 |
|
* @return boolean true on success |
| 340 |
|
* @throws RedisProxyException if number of arguments is wrong |
| 341 |
|
*/ |
| 342 |
|
public function mset(...$dictionary) |
| 343 |
|
{ |
| 344 |
|
$this->init(); |
| 345 |
|
if (is_array($dictionary[0])) { |
| 346 |
|
$result = $this->driver->mset(...$dictionary); |
| 347 |
|
return $this->transformResult($result); |
| 348 |
|
} |
| 349 |
|
$dictionary = $this->prepareKeyValue($dictionary, 'mset'); |
| 350 |
|
$result = $this->driver->mset($dictionary); |
| 351 |
|
return $this->transformResult($result); |
| 352 |
|
} |
| 353 |
|
|
| 354 |
|
/** |
| 355 |
|
* Multi get |
|
@@ 450-460 (lines=11) @@
|
| 447 |
|
* @return boolean true on success |
| 448 |
|
* @throws RedisProxyException if number of arguments is wrong |
| 449 |
|
*/ |
| 450 |
|
public function hmset($key, ...$dictionary) |
| 451 |
|
{ |
| 452 |
|
$this->init(); |
| 453 |
|
if (is_array($dictionary[0])) { |
| 454 |
|
$result = $this->driver->hmset($key, ...$dictionary); |
| 455 |
|
return $this->transformResult($result); |
| 456 |
|
} |
| 457 |
|
$dictionary = $this->prepareKeyValue($dictionary, 'hmset'); |
| 458 |
|
$result = $this->driver->hmset($key, $dictionary); |
| 459 |
|
return $this->transformResult($result); |
| 460 |
|
} |
| 461 |
|
|
| 462 |
|
/** |
| 463 |
|
* Multi hash get |