You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using trying to use the aiocache.lock.RedLock which comes with your library, but it has issues with a namespace is set. As namespace is get/set on the cache itself, this lock has issue fetching the key when the namespace is set. (The actual key has a different value depending on whether a namespace is set.
For example, by inserting namespace in your example:
It will run into errors when namespace is not None. I have tried to manually insert the namespace into the key used in lock but then the two keys don’t match and the lock throws an error. The only way I see that you can get around this is by allowing namespace to be be a kwargs for RedLock.
Alternatively, how do you envision that locks are implemented using your library?
Thanks!
The text was updated successfully, but these errors were encountered:
I am using trying to use the
aiocache.lock.RedLock
which comes with your library, but it has issues with a namespace is set. As namespace is get/set on thecache
itself, this lock has issue fetching the key when the namespace is set. (The actual key has a different value depending on whether a namespace is set.For example, by inserting namespace in your example:
It will run into errors when namespace is not None. I have tried to manually insert the namespace into the key used in lock but then the two keys don’t match and the lock throws an error. The only way I see that you can get around this is by allowing
namespace
to be be a kwargs forRedLock
.Alternatively, how do you envision that locks are implemented using your library?
Thanks!
The text was updated successfully, but these errors were encountered: