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

Add TTL to Redis Storage #81

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

rodrigobraga
Copy link
Contributor

Changes Redis Storage to set the TTL if parameter exists.

This PR maybe closes #69

Note: The Redis function "setnx" is deprecated.

Set the latest versions to redis and fake redis
- Add `expire time` as parameter to Redis Storage
- Uses `expire time` when `set` is fired
- `_initialize_redis_state` now use `set` instead of `setnx` (deprecated)
@rodrigobraga
Copy link
Contributor Author

@danielfm I opened this PR without discuss in a issue (for exemple) with you (and other members) if TTL is really interesting.

What you think? Make sense or is better close this PR?

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.

TTL on Redis
1 participant