wsgidav.lock_man.lock_storage.LockStorageDict.refresh#

LockStorageDict.refresh(token, *, timeout)[source]#

Modify an existing lock’s timeout.

token:

Valid lock token.

timeout:

Suggested lifetime in seconds (-1 for infinite). The real expiration time may be shorter than requested!

Returns:

Lock dictionary. Raises ValueError, if token is invalid.