09:14:57 GMT Does redis have an official command line client? 09:15:15 GMT e.g. just for exploration and administration? 09:16:47 GMT nvm, found it 12:23:49 GMT hi 12:23:58 GMT how can i use redis to create a blocking queue 12:24:12 GMT what is the correct way to handle EOF? 12:27:12 GMT BRPOP/BLPOP. i assume you mean an empty queue with EOF? you could put a timeout on B*POP and just check if the key exists 12:29:34 GMT minus: Ah, you mean the producer just remove the queue as notifying EOF? 12:29:57 GMT not quite 12:30:05 GMT hmm, what do you mean 12:30:06 GMT if you remove the last element from a list, the list disappears 12:30:54 GMT ok, how can I implement a single producer multi consumer queue using redis? 12:31:05 GMT and this queue should have fixed size 12:31:53 GMT fixed size doesn't really work 12:32:13 GMT you could throttle your producers when the queue has reached a specific size 12:32:57 GMT this seems to complicate my client side logic 12:34:09 GMT it's still relatively simple 12:34:32 GMT you could pack all the required logic in a lua script and have everything handled by redis then 12:36:29 GMT hmm, i still don't understand how can I get the EOF implemented right 12:36:59 GMT if the timeout has come and producer still doesn't put anything to the queue 12:38:11 GMT if B*POP times out it returns nil, so it's easy to see 12:40:04 GMT does returning nil mean eof or to keep waiting? 12:43:44 GMT http://redis.io/commands/brpop 12:48:26 GMT hmm, i think i should use sentinel 12:49:57 GMT this doc says nothing about the indistinguishable of EOF and empty queue imo 13:16:09 GMT is there a difference? 17:28:57 GMT is there a way to add a value to a set just in case if the set exists? 17:33:56 GMT not directly