09:53:21 GMT good day, humans. I have a question. I need to solve the following problem: I have a list with the length of 1. Now, I need to check the value and pop it from this list in case it has a specific value. I have multiple consumers listening on that list - so it needs to be transaction safe. Any suggestions? 13:54:14 GMT I'm facing a challenge that i'm not sure how to handle with redis. I'd like to have a sorted set where data is sorted not only by score but where first to reach to score has should stay first 13:54:31 GMT is this something that can be done with Redis ? 16:05:57 GMT how could zcard == 3 and zrangebyscore(name, 0, -1) == [] 16:06:39 GMT c7h, lua ;) 16:06:46 GMT nvm XD -1, 0 16:07:00 GMT MaxPain, it would take some hackery i think 17:04:38 GMT Hi all, in pub/sub mode 17:04:54 GMT what happens if there is no subscribers? what happens to the messages? 17:10:56 GMT should we fall back to just setting the message? 17:12:08 GMT liquid-silence, i think with no subscribers the message just falls on the floor. making it unreliable if connections drop. there was something on antirez's blog about a retry mechanism in the works 17:12:21 GMT well 17:12:28 GMT I don;t want to poll the redis db 17:12:46 GMT so I am trying to find a decent way to have it subscribe to a channel and the client just push to it 17:13:02 GMT maybe pub/sub is not the best idea here 17:14:23 GMT I think polling will be the best way for this 17:14:32 GMT but then that adds latency 17:14:43 GMT which is what I want to stop from happening 17:14:55 GMT I could spin up threads for the polling and user an internal queue 17:34:33 GMT if your connection is down, low latency will not happen. if you can keep the connection up, pub/sub is ok 17:35:19 GMT if what you want is a queue, redis isn't ideal, and antirez was working on some alternative whose details i've forgotten 17:35:26 GMT plus there's rabbitmq, 0mq, etc 19:06:41 GMT Thanks solrize, but i don't think i have the skills to hack redis lol 19:07:52 GMT MaxPain, i just mean a little bit of scripting on the server side, not hacking the c code. there is a built in lua for that. see the docs 19:10:27 GMT the only lua i know is the one in Roblox 19:11:21 GMT redis has lua 19:25:28 GMT Would be nice if there was a version of zrange that supported some sort of ordering field instead of relying on just the key 19:29:02 GMT MaxPain: ZRANGEBYSCORE? 19:37:41 GMT sknebel, i cant rely only on score only since i can have ties, and sorting ties using lexico-thing is not working for me, i dont want John to win over Paul because his name starts with J. 19:39:00 GMT my thinking here is that i want the first of the players to get the score to be #1 19:40:34 GMT that's why having a custom discrimination field would be a good thing 19:52:22 GMT so you need a table of all the scores that have been seen so far 19:52:24 GMT hmm that could work 19:52:40 GMT anyway what you want is called a stable sort 19:52:52 GMT you could check the docs to see if redis sorting is stable by default 19:55:50 GMT what do you mean by stable ? 19:59:24 GMT oh, just did a search, i dont think redis has a stable sort because when the score changes, it removes old entry and adds the new entry, from what i could read online 20:31:31 GMT Hello, I was wondering if a slave could connect to a master via SSL. Any hints as to whether that's possible in the docs? 20:36:20 GMT No, Redis has no ssl support, but you can just use stunnel 21:03:39 GMT avar: Sorry, missed the notification. Stunnel works fine for when I have clients connected, but I'm talking about slaves in a cluster connecting to a master 21:04:36 GMT Let me rephrase: Is it possible for a redis cluster slave to connect to a redis cluster master when the master is behind an SSL proxy 21:16:42 GMT no 21:16:53 GMT run a vpn 21:16:53 GMT is it best practice to run redis in cluster 21:17:17 GMT definitely not, momoterraw, if you don't need it 21:17:27 GMT it just makes things a lot more complex 21:17:31 GMT when do i need it normall? 21:17:33 GMT normally 21:18:19 GMT if the amount or volume of data is too much for a single machine 21:18:28 GMT oh gotcha 21:33:28 GMT minus: Dang, thought so. I mostly wanted it to make backing up and failover easier. Any suggestions for alternatives for backing up / failover for redis? 21:34:25 GMT backing up is easy, just copy the dump.rdb regularly 21:34:50 GMT minus: M'kay. I'll look into doing that instead for now, then. Thanks! 22:19:54 GMT hi, noob question. with zadd INCR score member ... does the INCR mean, increase the previous key if that key is already in the scored set? 22:22:08 GMT is there a command to pop/push X amount of messages from one queue to another queue?