set_ttl#
This function sets the lock time to live (in seconds). The function will return False if there is no lock with that name, otherwise it will return True. It could be useful for extending the lock's lifetime. Locks are automatically released when their TTL is exceeded without explicitly calling release.
Definition#
1 2 3 4 | |
Examples#
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |