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

Properly handle LOADING Redis is loading the dataset in memory errors

danog opened this issue · comments

Hi,

It would be awesome if the lib could internally handle and avoid LOADING Redis is loading the dataset in memory errors, returned if the server has just started up :)

How should it handle them?

I assume connection could be retried automatically within a certain timeout; I did simply add a systemd service dependency to redis to fix the issue in my case, but still, it still kind of feels like a problem that can be abstracted away.

There are many variables at play here that might need tuning, e.g. retry count, retry delay, etc. I think this should be solved with a decorator of another QueryExecutor.