Saturday, 11 April 2015

GETSET key value

Syntax
GETSET key value
       sets key to value and returns the old value stored at key.
   
127.0.0.1:6379> set age 25 
OK 
127.0.0.1:6379> getset age 26 
"25" 
127.0.0.1:6379> getset age 27 
"26" 
127.0.0.1:6379> 

Prevoius                                                 Next                                                 Home

No comments:

Post a Comment