Arguments
str
required
The key to expire.
int
required
The timeout in milliseconds as int or datetime.timedelta
bool
Set expiry only when the key has no expiry
bool
Set expiry only when the key has an existing expiry
bool
Set expiry only when the new expiry is greater than current one
bool
Set expiry only when the new expiry is less than current one
Response
True if the timeout was set