Sets a timeout on key. The key will automatically be deleted.
The key to set the timeout on.
The timeout in seconds as int or datetime.timedelta object
Set expiry only when the key has no expiry
Set expiry only when the key has an existing expiry
Set expiry only when the new expiry is greater than current one
Set expiry only when the new expiry is less than current one
True
if the timeout was set
Sets a timeout on key. The key will automatically be deleted.
The key to set the timeout on.
The timeout in seconds as int or datetime.timedelta object
Set expiry only when the key has no expiry
Set expiry only when the key has an existing expiry
Set expiry only when the new expiry is greater than current one
Set expiry only when the new expiry is less than current one
True
if the timeout was set