PSETEX

Syntax
PSETEX key milliseconds value
Available since:
2.6.0
Time complexity:
O(1)
ACL categories:
@write, @string, @slow,

PSETEX works exactly like SETEX with the sole difference that the expire time is specified in milliseconds instead of seconds.

Examples

redis> PSETEX mykey 1000 "Hello"
Failed to fetch
redis> PTTL mykey
Failed to fetch
redis> GET mykey
Failed to fetch
redis>

Feedback

If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.