google / dart-neats

neat dart packages.
Apache License 2.0
465 stars 85 forks source link

Reconnect when a redis command fails #236

Closed jonasfj closed 7 months ago

jonasfj commented 7 months ago

We have seen cases with:

RedisCommandException: OOM command not allowed under OOM prevention

Basically, we're getting an OOM error to a get/set command, this can happen if the system runs out of memory. Even if cache-eviction is enabled, memory can be fragmented too much, or other bad thing.

Conclusion was that commands like get/set can fail, even when redis is just used as a cache. There is no really good way to handle it. It might be safest to simply close the connection and try again later.