(key string, count int64)
| 235 | } |
| 236 | |
| 237 | func (c Client) SPOP(key string, count int64) (members []string, err error) { |
| 238 | members, err = c.SRANDMEMBER(key, count) |
| 239 | if err == nil { |
| 240 | _, err = c.SREM(key, members...) |
| 241 | } |
| 242 | |
| 243 | return |
| 244 | } |
| 245 | |
| 246 | func (c Client) SRANDMEMBER(key string, count int64) (members []string, err error) { |
| 247 | if count < 0 { |