Closed kiddouk closed 12 years ago
Moreover, issuing an EXPIRE command is as costly as ISSUING a DEL command and reduces the logic inside redisco.
This fix has obviously some implications:
You can't use your modelset for more than a minute. example :
cool_users = User.objects.filter(name="Jakub")
# wait one minute
len(cool_users) == 0
# True
Considering the following code :
Redisco end up leaking 2 filter keys (best case) and n filtering keys in case of multiple filtering.
Suggestion
give a timeout to each temporary keys to let say 60 seconds. It will give time to the operation to succeed and let redis handle the clean up for us.