amphp / redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

Home Page:https://amphp.org/redis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getMultiple method doesn't work

d-pylypenko opened this issue · comments

Hi,

\Amp\Redis\Redis::getMultiple(string $key, string ...$keys) the method receives a key and keys as arguments, but only keys without a first key are passed to array_combine. As a result, we get more answers than there is in the keys.

Result:

ValueError: array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements

Do you want to provide a PR?

@kelunik sure, here is the PR: #72

Thanks!