set

英[set] 美[sɛt]

vt. Set; place, arrange; put in a certain situation; place tableware

vi. Setting off; setting off; condensation

n.Gathering; a set; a set; a TV set

adj. Fixed; located in...; stubborn; arranged The

third person singular: sets plural: sets present participle: setting past tense: set past participle: set

redis PSETEX command syntax

Function:This command is similar to the SETEX command, but it sets the key's survival time in milliseconds, not in seconds like the SETEX command.

Syntax:PSETEX key milliseconds value

Available versions:>= 2.6.0

Time complexity Degree:O(1)

Return:Return OK when setting is successful.

redis PSETEX command example

redis> PSETEX mykey 1000 "Hello" OK redis> PTTL mykey (integer) 999 redis> GET mykey "Hello"