Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add command timeouts to the redis cache #877

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

azisaka
Copy link
Contributor

@azisaka azisaka commented Dec 10, 2024

To avoid waiting too much for a command to be executed, sometimes forever in case of an unresponsive Redis, I added a default timeout of 500ms.

The idea is to try to query Redis and create a race between a setTimeout and the command itself. The tests simulate the expected behavior, but they added some delay on the test suite.

Copy link
Contributor

Tagging Options

Should a new tag be published when this PR is merged?

  • 👍 for Patch 1.108.1 update
  • 🎉 for Minor 1.109.0 update
  • 🚀 for Major 2.0.0 update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant