Saturday, 11 April 2015

SETEX key seconds value

Syntax
SETEX key seconds value
    Sets the value to key, by specifying time out in seconds.


127.0.0.1:6379> setex a 5 25 
OK 
127.0.0.1:6379> get a 
"25" 
127.0.0.1:6379> get a 
(nil) 


After 5 seconds a is set to nil.
Prevoius                                                 Next                                                 Home

No comments:

Post a Comment