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

fix: Fix cache expiration result for customer current usage #459

Merged
merged 1 commit into from
Sep 15, 2022

Conversation

vincent-pochet
Copy link
Collaborator

Context

We have received few errors lately with the cache expiration computation for customer usage

These errors are raised by Redis (Redis::CommandError - ERR invalid expire time in 'set' command) when trying to write down the usage into the cache with the expiration key.

Description

The goal of this PR is to make sure that the expiration duration is never 0 or negative to prevent Redis from raising the error

@vincent-pochet vincent-pochet merged commit 6be245e into main Sep 15, 2022
@vincent-pochet vincent-pochet deleted the fix/customer-usage-cache-key branch September 15, 2022 07:00
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.

2 participants