Open GoogleCodeExporter opened 8 years ago
This would be great for sets, zsets and hashes as well.
Consider a series of processes that all add elements to a set. Periodically you
want to process all the elements in that set with a distributed set of
consumers:
publisher_a: sadd my_key 1
publisher_b: sadd my_key 2
publisher_a: sadd my_key 3
batch_manager: copy my_key my_batch
consumer_a: spop my_batch
consumer_b: spop my_batch
consumer_a: spop my_batch
# The consumers can process all of the elements that were in 'my_key' at the
time of the 'copy' - perfect for periodically processing snapshots of data,
while continuing to maintain a pristine original at 'my_key'
Original comment by brianoro...@gmail.com
on 21 Jun 2010 at 9:16
Agreed, another use case is when a scored set is used to represent correlation
between keywords and classes (e.g. sports) and the copy is intended to
eventually represent a sub-class (e.g. basketball).
Original comment by dr.marc....@gmail.com
on 6 Apr 2011 at 1:56
See my comment on bug 418 for set/zset.
Original comment by josiah.c...@gmail.com
on 6 Apr 2011 at 5:25
Original issue reported on code.google.com by
juan.aba...@gmail.com
on 24 May 2010 at 11:12