UserLockManager#
- class gafaelfawr.cache.UserLockManager(general_lock, user_lock)#
- Bases: - object- Helper class for managing per-user locks. - This should only be created by - PerUserCache. It is returned by the- PerUserCache.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.