Arguments
string
required
The key to set the timeout on.
integer
A unix timestamp in seconds at which point the key will expire.
Response
1 if the timeout was set, 0 otherwiseSets a timeout on key. The key will automatically be deleted.
1 if the timeout was set, 0 otherwise