Increment the value corresponding to the specified key by one.
至指定的键对应的值递增1。
用法----------Usage----------
redisIncr(key)
参数----------Arguments----------
参数:key
A key corresponding to the value to increment.
A键对应的值递增。
Details
详细信息----------Details----------
The value should be a character representation of an integer. If the key does not exist or contains a value of a wrong type, set the key to the value of "0" before to perform the operation.
该值应为整数的字符表示的。如果该键不存在,或者包含一个值,一个错误的类型,设置密钥的值“0”之前进行操作。
值----------Value----------
The new value of key after the increment, returned as a character string.
新值的增量键后,返回一个字符串。
(作者)----------Author(s)----------
B. W. Lewis
参考文献----------References----------
参见----------See Also----------
redisDecr
redisDecr
实例----------Examples----------
## Not run: [#不运行:]
redisSet('x','5')
redisIncr('x')