nateware/redis-objects — pull request #52 by oogali (2012-01-03 07:55:34+00:00)
Title: added #move method for Redis::Set

I've added a .move method to the Redis::Set class, so you can move members in between Sets.

>> pending = Redis::Set.new 'queue/pending'
=> #
>> processing = Redis::Set.new 'queue/processing'
=> #
>> pending << 'xyz'
=> #
>> pending.members
=> ["xyz"]
>> processing.members
=> []
>> pending.move 'xyz', processing
=> true
>> pending.members
=> []
>> processing.members
=> ["xyz"]