Latest web development tutorials

Redis comando Psetex

Redis cadena (string)

Redis Psetex conjunto de comandos en milisegundos el tiempo de supervivencia clave.

gramática

Redis Psetex sintaxis del comando básico es el siguiente:

redis 127.0.0.1:6379> PSETEX key1 EXPIRY_IN_MILLISECONDS value1 

versiones disponibles

> = 2.6.0

Valor de retorno

Atrás Aceptar la hora de establecer el éxito.

Ejemplos

redis 127.0.0.1:6379> PSETEX mykey 1000 "Hello"
OK
redis 127.0.0.1:6379> PTTL mykey
999
redis 127.0.0.1:6379> GET mykey
1) "Hello"

Redis cadena (string)