'AttributeError: prev' when assigning new key
Closed this issue · 1 comments
I'm using cachetools==3.0.0 with python 2.7.
Been looking for similar error anywhere but couldn't find anything.
When assigning a new key: value to a TTLCache() object.
i.e
object = TTLCache(maxsize=100, ttl=60)
object[key] = value
I keep getting this error:
What does it mean?
It doesn't happen on the first 'assignment'.
I have an application that checks whether the key is still in the object, and if it doesn't, I'm adding the adding this key to the cache again. I don't when exactly when but after some time the error appears and keeps showing.
I hope It's the right place to ask and that I added everything which is relevant. Thanks.
Ok, I think I understand, reading from the docs, that the issue might be related to using multi-threaded with ttlCache object and it's better to use 'set' method.
Sorry about that.