PSETEX
Synopsis
PSETEX key ttl_in_msec string_value
This command sets the value of key
to be string_value
, and sets the key to expire in ttl_in_msec
milli-seconds.
Return Value
Returns status string.
Examples
$ PSETEX yugakey 1000 "Yugabyte"
"OK"
$ GET yugakey
"Yugabyte"
$ PTTL yugakey
(integer) 900
See also
append
, set
, setex
, get
, getrange
, getset
, incr
, incrby
, setrange
, strlen
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .