/man/redisSDiffStore.Rd

http://github.com/bwlewis/rredis · Unknown · 50 lines · 50 code · 0 blank · 0 comment · 0 complexity · 0176bdd4a6264a3a7749d8f5e7aefc90 MD5 · raw file

  1. \name{redisSDiffStore}
  2. \alias{redisSDiffStore}
  3. \title{
  4. Store the difference of two or more sets.
  5. }
  6. \description{
  7. Store the (set) difference of two or more sets in the specified set.
  8. }
  9. \usage{
  10. redisSDiffStore(dest, keys, ...)
  11. }
  12. \arguments{
  13. \item{dest}{
  14. The destination set in which to store the result.
  15. }
  16. \item{keys}{
  17. A vector or list of keys corresponding to sets. May also be a single
  18. key.
  19. }
  20. \item{...}{
  21. Additional keys corresponding to sets. See the examples below.
  22. }
  23. }
  24. \details{
  25. The \code{keys} argument may be a vector of set names, a list of set names,
  26. or a single set name. If only a single set name is specified, specify
  27. more sets as additional function arguments as shown in the examples.
  28. }
  29. \value{
  30. A redis status code.
  31. }
  32. \references{
  33. http://redis.io/commands
  34. }
  35. \author{
  36. B. W. Lewis
  37. }
  38. \seealso{
  39. \code{\link{redisSDiff}}
  40. }
  41. \examples{
  42. \dontrun{
  43. redisConnect()
  44. redisSAdd('A',1)
  45. redisSAdd('A',2)
  46. redisSAdd('A',3)
  47. redisSAdd('B',2)
  48. redisSDiffStore('C','A','B')
  49. }
  50. }