setx key value ttl

Set the value of the key, with a time to live.

Unlike Redis, the ttl will not be remove when later set the same key!

Parameters

Return Value

false on error, other values indicate OK.

Example