Method: Redis::Distributed#spop
- Defined in:
- lib/redis/distributed.rb
#spop(key, count = nil) ⇒ Object
Remove and return a random member from a set.
595 596 597 |
# File 'lib/redis/distributed.rb', line 595 def spop(key, count = nil) node_for(key).spop(key, count) end |