Decrement the value corresponding to the specified key by one.
递减的值对应于由一个指定的键。
用法----------Usage----------
redisDecr(key)
参数----------Arguments----------
参数:key
A key corresponding to the value to decrement.
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 decrement, returned as a character string.
键减1后的新值,返回一个字符串。
(作者)----------Author(s)----------
B. W. Lewis
参考文献----------References----------
参见----------See Also----------
redisIncr
redisIncr
实例----------Examples----------
## Not run: [#不运行:]
redisSet('x','5')
redisDecr('x')