@@ 429-439 (lines=11) @@ | ||
426 | * @return boolean true on success |
|
427 | * @throws RedisProxyException if number of arguments is wrong |
|
428 | */ |
|
429 | public function mset(...$dictionary) |
|
430 | { |
|
431 | $this->init(); |
|
432 | if (is_array($dictionary[0])) { |
|
433 | $result = $this->driver->mset(...$dictionary); |
|
434 | return $this->transformResult($result); |
|
435 | } |
|
436 | $dictionary = $this->prepareKeyValue($dictionary, 'mset'); |
|
437 | $result = $this->driver->mset($dictionary); |
|
438 | return $this->transformResult($result); |
|
439 | } |
|
440 | ||
441 | /** |
|
442 | * Multi get |
|
@@ 537-547 (lines=11) @@ | ||
534 | * @return boolean true on success |
|
535 | * @throws RedisProxyException if number of arguments is wrong |
|
536 | */ |
|
537 | public function hmset($key, ...$dictionary) |
|
538 | { |
|
539 | $this->init(); |
|
540 | if (is_array($dictionary[0])) { |
|
541 | $result = $this->driver->hmset($key, ...$dictionary); |
|
542 | return $this->transformResult($result); |
|
543 | } |
|
544 | $dictionary = $this->prepareKeyValue($dictionary, 'hmset'); |
|
545 | $result = $this->driver->hmset($key, $dictionary); |
|
546 | return $this->transformResult($result); |
|
547 | } |
|
548 | ||
549 | /** |
|
550 | * Multi hash get |