@@ 169-178 (lines=10) @@ | ||
166 | * @return boolean true on success |
|
167 | * @throws RedisProxyException if number of arguments is wrong |
|
168 | */ |
|
169 | public function mset(...$dictionary) |
|
170 | { |
|
171 | if (is_array($dictionary[0])) { |
|
172 | $result = $this->driver->mset(...$dictionary); |
|
173 | return $this->transformResult($result); |
|
174 | } |
|
175 | $dictionary = $this->prepareKeyValue($dictionary, 'mset'); |
|
176 | $result = $this->driver->mset($dictionary); |
|
177 | return $this->transformResult($result); |
|
178 | } |
|
179 | ||
180 | /** |
|
181 | * @param string $key |
|
@@ 292-301 (lines=10) @@ | ||
289 | * @return boolean true on success |
|
290 | * @throws RedisProxyException if number of arguments is wrong |
|
291 | */ |
|
292 | public function hmset($key, ...$dictionary) |
|
293 | { |
|
294 | if (is_array($dictionary[0])) { |
|
295 | $result = $this->driver->hmset($key, ...$dictionary); |
|
296 | return $this->transformResult($result); |
|
297 | } |
|
298 | $dictionary = $this->prepareKeyValue($dictionary, 'hmset'); |
|
299 | $result = $this->driver->hmset($key, $dictionary); |
|
300 | return $this->transformResult($result); |
|
301 | } |
|
302 | ||
303 | /** |
|
304 | * Incrementally iterate hash fields and associated values |