/man/redisDecr.Rd

http://github.com/bwlewis/rredis · Unknown · 38 lines · 36 code · 2 blank · 0 comment · 0 complexity · eaa29adcbd7e2dedbe033aa083da1e53 MD5 · raw file

  1. \name{redisDecr}
  2. \alias{redisDecr}
  3. \title{Decrement a value by one.}
  4. \description{Decrement the value corresponding to the specified key by one.
  5. }
  6. \usage{
  7. redisDecr(key)
  8. }
  9. \arguments{
  10. \item{key}{A key corresponding to the value to decrement.
  11. }
  12. }
  13. \details{
  14. The value should be a character representation of an integer.
  15. If the key does not exist or contains a value of a wrong type, set the
  16. key to the value of "0" before to perform the operation.
  17. }
  18. \value{
  19. The new value of key after the decrement, returned as a character
  20. string.
  21. }
  22. \references{
  23. http://redis.io/commands
  24. }
  25. \author{
  26. B. W. Lewis
  27. }
  28. \seealso{
  29. \code{\link{redisIncr}}
  30. }
  31. \examples{
  32. \dontrun{
  33. redisSet('x','5')
  34. redisDecr('x')
  35. }
  36. }