UserLockManager#
- class gafaelfawr.cache.UserLockManager(general_lock, user_lock)#
Bases:
objectHelper class for managing per-user locks.
This should only be created by
PerUserCache. It is returned by thePerUserCache.lockmethod and implements the async context manager protocol.- Parameters:
general_lock (
Lock) – Lock protecting the per-user locks.user_lock (
Lock) – Per-user lock for a given user.