Saturday 11 April 2015

INCRBY key increment


Syntax
INCRBY key increment
    Increment the value stored at key by increment. If key doesn't exist, then it sets to zero.

Returns
Returns the value of key after increment.

127.0.0.1:6379> set var 10 
OK 
127.0.0.1:6379> incrby var 5 
(integer) 15 
127.0.0.1:6379> incrby var 6 
(integer) 21 
127.0.0.1:6379> 


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment