redis> SET totalNum 10
OK
redis> DECR totalNum //依次减一
(integer) 9
redis> SET totalNum 20
OK
redis> INCR totalNum //依次加一
(integer) 21
redis
redis> SET totalNum 10
OK
redis> DECR totalNum //依次减一
(integer) 9
redis> SET totalNum 20
OK
redis> INCR totalNum //依次加一
(integer) 21
redis