Generic
PEXPIRE
Sets a timeout on key. After the timeout has expired, the key will automatically be deleted.
Arguments
key
string
requiredThe key to expire.
milliseconds
integer
The number of milliseconds until the key expires.
Response
1
if the timeout was applied, 0
if key
does not exist.