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

Problem with redis connection

LordDeveloper opened this issue · comments

I found a problem in redis, This is my redis connection configuration:

$config = config('redis');

if (isset($config['host']) && isset($config['port'])) {
    $uri = Config::fromUri('redis://' . $config['host'] . ':' . $config['port'] . '?' . http_build_query([
            'password' => $config['password'] ?? '',
            'timeout' => $config['timeout'] ?? '',
            'database' => $config['database'] ?? 0,
        ]));

    return new Redis(new RemoteExecutor($uri));
}
return null;

I have a infinite loop, After running each query, The redis connect and disconnect from redis server.

image

private function connect(): Promise

image

Apologies for not responding to this issue sooner. I cannot reproduce this behavior. Unfortunately without more information I'm unsure of what may have been happening.

Because some time has passed, I'm closing this issue. If you still need assistance, please open a new issue with more information.