|
@@ 224-234 (lines=11) @@
|
| 221 |
|
* @return boolean true on success |
| 222 |
|
* @throws RedisProxyException if number of arguments is wrong |
| 223 |
|
*/ |
| 224 |
|
public function mset(...$dictionary) |
| 225 |
|
{ |
| 226 |
|
$this->init(); |
| 227 |
|
if (is_array($dictionary[0])) { |
| 228 |
|
$result = $this->driver->mset(...$dictionary); |
| 229 |
|
return $this->transformResult($result); |
| 230 |
|
} |
| 231 |
|
$dictionary = $this->prepareKeyValue($dictionary, 'mset'); |
| 232 |
|
$result = $this->driver->mset($dictionary); |
| 233 |
|
return $this->transformResult($result); |
| 234 |
|
} |
| 235 |
|
|
| 236 |
|
/** |
| 237 |
|
* Multi get |
|
@@ 332-342 (lines=11) @@
|
| 329 |
|
* @return boolean true on success |
| 330 |
|
* @throws RedisProxyException if number of arguments is wrong |
| 331 |
|
*/ |
| 332 |
|
public function hmset($key, ...$dictionary) |
| 333 |
|
{ |
| 334 |
|
$this->init(); |
| 335 |
|
if (is_array($dictionary[0])) { |
| 336 |
|
$result = $this->driver->hmset($key, ...$dictionary); |
| 337 |
|
return $this->transformResult($result); |
| 338 |
|
} |
| 339 |
|
$dictionary = $this->prepareKeyValue($dictionary, 'hmset'); |
| 340 |
|
$result = $this->driver->hmset($key, $dictionary); |
| 341 |
|
return $this->transformResult($result); |
| 342 |
|
} |
| 343 |
|
|
| 344 |
|
/** |
| 345 |
|
* Multi hash get |