taskiq-python / taskiq-redis

Broker and result backend for taskiq
MIT License
40 stars 18 forks source link

Adding expiration to redis result backend #24

Closed s3rius closed 1 year ago

s3rius commented 1 year ago

Sometimes people don't want to store results forever and want to have expiration for all results in some period of time.

Currently, we use hashmaps to store results. But since logs are deprecated, we can now just use bytes to store raw pickled values and set EX parameter.