Saturday 11 April 2015

PSETEX key milliseconds value

Syntax
PSETEX key milliseconds value

Sets the value to key, by specifying expiry time in milliseconds.

127.0.0.1:6379> psetex a 5000 10 
OK 
127.0.0.1:6379> get a 
"10" 
127.0.0.1:6379> get a 
(nil) 
 
After 5 seconds value of a set to nil.



Prevoius                                                 Next                                                 Home

No comments:

Post a Comment