<    March 2017    >
Su Mo Tu We Th Fr Sa  
          1  2  3  4  
 5  6  7  8  9 10 11  
12 13 14 15 16 17 18  
19 20 21 22 23 24 25  
26 27 28 29 30 31
00:21 Tux joined
00:21 Tux joined
00:24 garfed joined
00:26 <bleb> minus: and do you know where redis-cli gets it's default connection? i.e. if you don't specify something with -s
00:49 soveran joined
01:07 hahuang65 joined
01:34 junebooster joined
01:48 EyePulp joined
01:54 hphuoc25 joined
02:15 hphuoc25 joined
02:45 hphuoc25 joined
02:52 soveran joined
03:05 shinnya joined
03:18 hphuoc25 joined
03:23 white_knight joined
03:37 nathans joined
03:57 rchavik joined
04:05 chipotle joined
04:09 HelloWorld1 joined
04:09 hphuoc25 joined
04:11 RemiFedora joined
04:12 <HelloWorld1> Hi all, been a while since I logged onto IRC. Thought I'd try my luck here with a query I have. I am aware of Redis Pub/Sub as well as keyspace notifications. I am wondering how I could go about receiving notifications for a particular key? The problem I have is that a springboot based client using jedis which connects to Redis. When it requests a key, if it does not exist. It should subscribe so that it gets notified when it bec
04:13 <HelloWorld1> Another approach that crossed my mind is that I could 'poll' for say 500ms and then give abandon if it's still not there
04:56 fakenerd joined
05:00 chipotle joined
05:51 hive-mind joined
05:59 moo-_- joined
06:26 <minus> bleb: well, localhost:6379 is the default ip:port redis listens on (the values are listed in redis-cli --help)
06:30 <minus> HelloWorld1: when it's a key expiration notification then you won't be able to retrieve the key contents afterwards, otherwise it should be fine. depending on what you're trying to do you could push things into a redis list and brpop (blocking pop) on it
06:55 soveran joined
06:55 soveran joined
07:01 akkad joined
07:07 tavish joined
07:36 programmingcool joined
07:39 rendar joined
07:40 EyePulp joined
07:42 sQVe joined
07:42 efphe joined
08:00 EyePulp joined
08:18 EyePulp joined
08:22 sQVe joined
08:25 <HelloWorld1> @minus, I have key expiration covered. It's just trying to figure out an optimal way of solving my problem. Right now my app hits Redis via a rest api (another springboot app) every few ms. But I don't like this approach. Too much 'chatter'. I want to isolate that between the app that talks to Redis directly
08:27 soveran joined
08:27 soveran joined
08:31 EyePulp joined
08:31 <minus> HelloWorld1: your lines are too long and get cut off
08:32 <minus> > …app that talks to Redis directly ← last thing that's there
08:32 <minus> hm, that line wasn't even that long
08:39 hphuoc25 joined
08:41 Dave_R joined
08:46 Mr__Anderson joined
09:00 irsol joined
09:37 granitosaurus joined
09:38 nathans joined
09:45 kiran_ joined
09:56 tomaz_b joined
10:02 hphuoc25 joined
10:04 mdw joined
10:13 sQVe joined
10:18 soveran joined
10:18 soveran joined
10:27 cyborg-one joined
10:37 soveran joined
10:38 EyePulp joined
10:45 Champi joined
10:51 tavish joined
10:52 soveran joined
10:52 soveran joined
11:07 tarkus joined
11:07 <tarkus> How do you think, should I run Redis docker image under "redis" user in production?
11:31 al-damiri joined
11:40 leito joined
11:56 sfa joined
12:03 fakenerd joined
12:04 EyePulp joined
12:12 sQVe joined
12:12 saml joined
12:12 <saml> hey, how do I do HDEL of 1 million?
12:12 <saml> i have a line separated file. each line lists id
12:13 <saml> redis-cli HDEL rootkey $(cat thefile.txt)
12:13 <saml> it'll probably hit my shell's argv limit
12:15 MonkOfCity joined
12:17 tavish joined
12:24 <minus> saml: DEL the rootkey?
12:25 <minus> also, having 1M entries in a hash probably isn't the best thing to do
12:28 <saml> minus, actually HDEL
12:28 <saml> ah i see what you mean
12:29 <saml> is there HCOUNT ? a way to see how many entries in a hash
12:30 <saml> hlen gives me 300 million entries
12:30 <saml> i just want to delete 1 million only
12:31 <saml> only 0.3%
12:34 <minus> use a client and pipelining then
12:34 <minus> 300M entries in a hash sounds very wrong
12:34 <minus> that must be rather slow
12:34 hphuoc25 joined
12:35 <minus> otoh HDEL is O(N) for N entries to delete
12:40 pila joined
12:46 <saml> minus, client pipelining means multiple invocation of redis-cli?
12:46 <saml> redis-cli -x HDEL rootkey < ids.txt
12:47 <saml> this does not work as I expected. tried both line delimited ids.txt or space delimited
12:47 <minus> nah, i mean don't use redis-cli
12:47 <saml> ah thanks
12:47 <minus> like, write a python piece to do the thing
12:48 <minus> though i'm not entirely confident on how/if pipelining works in redis-py
12:48 <Habbie> redis-py has pipelining
12:49 <minus> afaik it has transactions/multi, but not pipelining in a sense that you don't wait for the result in place
12:50 <Habbie> https://github.com/andymccurdy/redis-py#pipelines
12:51 leito joined
12:51 <minus> yeah, that's what i meant
12:53 winem_ joined
13:00 <saml> purge all the cache
13:13 tomaz_b joined
13:21 hphuoc25 joined
13:25 shinnya joined
13:31 EyePulp joined
13:37 daxelrod joined
13:43 white_knight joined
13:53 crobbins joined
13:59 hashpuppy joined
14:01 edge226 joined
14:37 cyborg-one joined
14:38 tarkus joined
14:48 Cohedrin joined
14:54 soosfarm joined
15:00 tg joined
15:01 wlightning-fuel joined
15:09 forgotmynick joined
15:32 soveran joined
15:32 soveran joined
15:35 FunnyLookinHat joined
15:35 FunnyLookinHat joined
15:47 Cohedrin joined
15:50 MrXXIV joined
15:54 sz0 joined
16:02 shesek joined
16:03 soveran joined
16:03 soveran joined
16:13 pwhack joined
16:16 SkyRocknRoll joined
16:17 hphuoc25 joined
16:21 pwhack joined
16:24 wlightning-fuel joined
16:37 atomi joined
16:48 raspado joined
16:53 svm_invictvs joined
16:55 atomi joined
17:00 atomi joined
17:04 chipotle joined
17:04 Cohedrin joined
17:07 soveran joined
17:07 soveran joined
17:13 tarkus joined
17:24 Guest96 joined
17:34 atomi joined
17:42 guhcampos joined
17:45 hahuang61 joined
17:46 atomi joined
17:51 atomi joined
17:56 atomi joined
17:58 timg__ joined
18:03 wlightning-fuel joined
18:16 Cohedrin joined
18:17 ced_ joined
18:19 <ced_> Is redis suited for the situation in which I need sorted set as well as one sorted set than contains all the others. Think Ranking by day but also ranking since the beginning
18:21 <minus> they're separate data sets, so probably
18:21 <minus> might still be a better idea to just drop it in some RDBMS if you need other things as well
18:23 sQVe joined
18:23 atomi joined
18:27 efphe joined
18:27 <ced_> @minus, thanks I feel like RDBMS might be better suited. The thing that's putting me off is that I'd need to duplicate data in my scenario right ? So I'd have to keep track of the score in the "score_by_day" zset as well as the "score_since_forever" zset
18:28 <ced_> That is, for the same data
18:32 bf_ joined
18:35 <minus> depends on how you calculate the score, i guess
18:35 <minus> and you can just store references in the zsets
18:59 leito joined
19:04 guhcampos joined
19:09 soveran joined
19:14 Mr__Anderson joined
19:18 soveran joined
19:18 soveran joined
19:23 stickupkid joined
19:24 damnlie_ joined
19:28 <stickupkid> I wonder if anyone has any advice when implementing redis modules. I want to store a list of strings in a hash (HSET, etc), what's the best way to put those values into the hash field? JSON, msgpack (is that available?) or simple CSV?
19:34 fakenerd_ joined
19:37 ggherdov` joined
19:37 leito joined
19:41 codedmart_ joined
19:45 sknebel joined
19:45 gazarsgo joined
19:48 soveran joined
19:48 soveran joined
19:51 burn joined
20:00 hahuang65 joined
20:02 danns23 joined
20:11 rendar joined
20:11 rendar joined
20:13 chipotle joined
20:17 svm_invictvs joined
20:45 melkore joined
21:13 wlightning-fuel joined
21:14 ghoti joined
21:16 jobewan joined
21:23 atomi joined
21:25 atomi joined
21:27 sz0 joined
21:28 hahuang65 joined
21:30 Deamon_ left
21:32 soveran joined
21:32 soveran joined
21:33 wlightning-fuel joined
21:51 wlightning-fuel joined
22:00 hahuang65 joined
22:06 hahuang65 joined
22:18 wlightning-fuel joined
22:41 Guest96 joined
22:43 cyborg-one joined
22:49 soveran joined
23:14 fakenerd joined
23:14 cyborg-one joined
23:17 czerasz joined
23:18 czerasz joined
23:32 cyborg-one joined
23:37 wlightning-fuel joined