/man/redisDecr.Rd
http://github.com/bwlewis/rredis · Unknown · 38 lines · 36 code · 2 blank · 0 comment · 0 complexity · eaa29adcbd7e2dedbe033aa083da1e53 MD5 · raw file
- \name{redisDecr}
- \alias{redisDecr}
- \title{Decrement a value by one.}
- \description{Decrement the value corresponding to the specified key by one.
- }
- \usage{
- redisDecr(key)
- }
- \arguments{
- \item{key}{A key corresponding to the value to decrement.
- }
- }
- \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.
- }
- \value{
- The new value of key after the decrement, returned as a character
- string.
- }
- \references{
- http://redis.io/commands
- }
- \author{
- B. W. Lewis
- }
- \seealso{
- \code{\link{redisIncr}}
- }
- \examples{
- \dontrun{
- redisSet('x','5')
- redisDecr('x')
- }
- }