@@ 302-314 (lines=13) @@ | ||
299 | * @override |
|
300 | * @inheritDoc |
|
301 | */ |
|
302 | public function mSet(array $kvMap) |
|
303 | { |
|
304 | $command = Enum::MSET; |
|
305 | $args = []; |
|
306 | if (!empty($kvMap)) { |
|
307 | foreach ($kvMap as $key => $val) { |
|
308 | $args[] = $key; |
|
309 | $args[] = $val; |
|
310 | } |
|
311 | } |
|
312 | ||
313 | return $this->dispatch(Builder::build($command, $args)); |
|
314 | } |
|
315 | ||
316 | /** |
|
317 | * @override |
|
@@ 320-332 (lines=13) @@ | ||
317 | * @override |
|
318 | * @inheritDoc |
|
319 | */ |
|
320 | public function mSetNx($kvMap) |
|
321 | { |
|
322 | $command = Enum::MSETNX; |
|
323 | $args = []; |
|
324 | if (!empty($kvMap)) { |
|
325 | foreach ($kvMap as $key => $val) { |
|
326 | $args[] = $key; |
|
327 | $args[] = $val; |
|
328 | } |
|
329 | } |
|
330 | ||
331 | return $this->dispatch(Builder::build($command, $args)); |
|
332 | } |
|
333 | ||
334 | /** |
|
335 | * @override |