wsgidav.lock_man.lock_storage.LockStorageShelve¶
- class wsgidav.lock_man.lock_storage.LockStorageShelve(storage_path)[source]¶
Bases:
wsgidav.lock_man.lock_storage.LockStorageDict
A low performance lock manager implementation using shelve.
Purge expired locks (optional).
Delete all entries.
Called on shutdown.
LockStorageShelve.create
(path, lock)Create a direct lock for a resource path.
LockStorageShelve.delete
(token)Delete lock.
LockStorageShelve.get
(token)Return a lock dictionary for a token.
LockStorageShelve.get_lock_list
(path, *, ...)Return a list of direct locks for <path>.
Called before first use.
LockStorageShelve.refresh
(token, *, timeout)Modify an existing lock's timeout.