Closed Pydes-boop closed 9 months ago
Thanks for the feedback! I changed the structure of your suggested codesnippet a bit as i found it more readable but otherwise all should be fixed and added as requested in the latest commit.
Let me know if there is anything else.
redis-py already supports EX in int as seconds since epoch or as timedelta, this PR exposes the timedelta possibility for expiration from redis-py to redis-dict.
Additionally i added some tests to make sure it is all covered but those could potentially be left out because their functionality might be tested by redis-py already.