Redis 3.2 string type entry
3.2.4 Command Supplements
1. Increase the integer specified
INCRBY key increment
INCRBY command INCR command basically the same, but the former can specify a numerical increase by increment parameters.
2. diminishing specified integer
DECR key
DECRBY key
DECR INCR command with the same usage, just let the key diminishing.
3. Increase the specified float
INCRBYFLOAT key increment
INCRBYFLOAT key increment command similar INCRBY command, the difference is that the former can be a double-precision floating-point increments
4. aft added value
APPEND key value
APPEND key role is to append a value. If the key does not exist then the set key-value is value, which is equivalent to SET key value. The return value is the total length of the string after appended.
5. Get string length
STRLEN key
STRLEN command returns the length of the key, if the key does not exist is returned to zero.
6. Meanwhile Get / Set plurality of keys
MGET key [key...]
MGET key value [key value...]
MGET / MSET the GET / SET similar, but MGET / MSET can get / set a plurality of keys of the key simultaneously. Such as:
redis> MSET key1 value1 key2 value2 key3 value3
OK
redis> GET key2
"value2"
redis> MGET key1 key3
1) "value1"
2) "value3"
7. Bit Operation
GETBIT key offset
SETBIT kye offset value
BITCOUNT key [start] [end]
BITOP operation destkey key [key...]