@@ 387-397 (lines=11) @@ | ||
384 | * @return boolean true on success |
|
385 | * @throws RedisProxyException if number of arguments is wrong |
|
386 | */ |
|
387 | public function mset(...$dictionary) |
|
388 | { |
|
389 | $this->init(); |
|
390 | if (is_array($dictionary[0])) { |
|
391 | $result = $this->driver->mset(...$dictionary); |
|
392 | return $this->transformResult($result); |
|
393 | } |
|
394 | $dictionary = $this->prepareKeyValue($dictionary, 'mset'); |
|
395 | $result = $this->driver->mset($dictionary); |
|
396 | return $this->transformResult($result); |
|
397 | } |
|
398 | ||
399 | /** |
|
400 | * Multi get |
|
@@ 495-505 (lines=11) @@ | ||
492 | * @return boolean true on success |
|
493 | * @throws RedisProxyException if number of arguments is wrong |
|
494 | */ |
|
495 | public function hmset($key, ...$dictionary) |
|
496 | { |
|
497 | $this->init(); |
|
498 | if (is_array($dictionary[0])) { |
|
499 | $result = $this->driver->hmset($key, ...$dictionary); |
|
500 | return $this->transformResult($result); |
|
501 | } |
|
502 | $dictionary = $this->prepareKeyValue($dictionary, 'hmset'); |
|
503 | $result = $this->driver->hmset($key, $dictionary); |
|
504 | return $this->transformResult($result); |
|
505 | } |
|
506 | ||
507 | /** |
|
508 | * Multi hash get |