Skip to content

Add TTL to Redis Storage#81

Open
rodrigobraga wants to merge 5 commits intodanielfm:mainfrom
rodrigobraga:main
Open

Add TTL to Redis Storage#81
rodrigobraga wants to merge 5 commits intodanielfm:mainfrom
rodrigobraga:main

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?

@nonodev96
Copy link

Any update on this PR? I think it would be very valuable to move it forward.

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

2 participants