03:40:27 GMT minus: http://worldofsolitaire.com 04:23:05 GMT Hi, I'm wondering if there's some standard way to handle race conditions in Redis (I'm using Redis from Python if that matters). I'm using a linked list in Redis as a queue, but I have one process that pushes items onto the queue and one process that pops items from the queue 04:24:01 GMT So I'm worried about the case where process A reads the state of Redis, pushes an item onto the queue, and then writes its new version of the queue to Redis. And process B concurrently does the same (with the difference of popping an item off the queue), but then it overwrites the new version created by process A. 06:28:05 GMT Hi guys , can we open close connection at very high rate ? 06:28:27 GMT I had heard Tcp-connection close bug was open few months back , is it resolved ? 10:04:52 GMT morning ! 10:05:18 GMT is it possible to use external libraries in a lua script that runs in redis? 10:10:56 GMT no 10:11:03 GMT only the ones included 10:11:07 GMT unless you patch your redis 10:11:31 GMT (which is not that hard, but you are on your own if you do: https://fnordig.de/2014/07/27/extending-redis-with-lua-packages/) 10:12:39 GMT badboy_: which ones are included? 10:12:56 GMT http://redis.io/commands/eval#available-libraries 10:13:32 GMT well, I can probably include the library in my code 10:13:52 GMT badboy_: is there a limit in terms of code size ? 10:14:29 GMT limited by memory 10:15:08 GMT if it is a pure-lua lib, you can include it, sure 10:15:08 GMT ok, so I can add it to my code then 10:15:16 GMT what library is it? 10:15:35 GMT nothing yet, just wondering if that could be possible 10:21:41 GMT ah 10:28:43 GMT thanks badboy_ , bye 13:17:56 GMT hi all. i have a question. im totally new to redis. i have redis set up in a docker. now, how do i secure it i mean, its accessible over the web, but ... it has no password user anything set? 13:19:28 GMT freakyy: simplest way is to not expose it to the internet 13:19:46 GMT by exposing it to 127.0.0.1 only 13:20:20 GMT like docker run -p 127.0.0.1:6379:6379 or so 13:22:52 GMT hm ok thanks ... 13:26:49 GMT minus: but then still local users on my server could access the database? they could remove stuff etc. i dont want that ... 13:26:56 GMT you can set a password too, but it's better to not put it on the internet at all 13:27:03 GMT yes 13:27:36 GMT if you don't run redis in a docker container you could do access control by binding it to a unix socket instead ofa tcp socket 13:27:59 GMT requirepass in the config sets the password 13:28:35 GMT hm that's really insecufre i might switch to mongodb ... 13:29:26 GMT freakyy: ... its not insecure to bind it to a unix socket 13:29:44 GMT how exactly do you think mongodb works? (hint: in exactly the same way as redis) 13:31:06 GMT rob_: mongodb uses users and passwords ;D 13:31:21 GMT thanks for all your help though :) 13:31:29 GMT you dont understand security 13:31:36 GMT so good luck with that 13:31:38 GMT thanks 13:31:56 GMT unix sockets provide the same level of protection as username/password for local applications 13:32:14 GMT in fact even more since there is no way of imposing some other user if you have the password 13:32:29 GMT though if you have access you have full control 14:23:56 GMT Hello. I need to perform a given action whenever a key is eliminated, either because it auto-expires or because I make it expire manually. I set up a subscriber for expiration and it works fine, the event is handled when the key expires by itself, or when I call EXPIRE on it with a number of seconds greater than 0. However, if I "EXPIRE key 0" (to have it expire immediately), my subscriber isn't notified. Am I doing something wrong 16:01:03 GMT How can I modify "bind" of a running server without restarting? 16:01:20 GMT probably not 16:01:49 GMT if you execute config get * and don't see a bind option in there it's a no 16:03:11 GMT no it's not there.. thanks for the tip! :) 18:46:34 GMT Hey guys .. Can someone help me out? I'd like to setup AOF ... But I'm a little confused .. How does AOF + RDB work when both are enabled? 19:44:49 GMT I just want to make sure I'm reading this right. If I want HA in redis, my best bet is to create a replica off my master, then use a sentinel-cluster to handle the auto failover of the writes? My app points at the sentinel cluster instead of the redis master? 19:48:21 GMT Ok, the app discovers teh master IP from the sentinel instances then confirms it via role, but I'm still curious about the intial setup of things 19:48:27 GMT hi all, I am doing something similar to caching comments for a post; I can either store all the comments in a single data post and filter out results or I can store an index record and query for each comment stored in redis. Is it worth optimizing for fewer queries to redis and a larger dataset or does it not matter? 19:48:32 GMT stardard slaveofs I guess 19:48:33 GMT ? 19:53:36 GMT What i'm Sincerely confused about if anyone can answer.. 19:55:38 GMT https://github.com/antirez/redis/pull/2574 --> this says now it will "migrate" RDB to AOF when you start the server with AOF disabled (and none exists)? So it will read my RDB and generate a linear copy of it in AOF? I am just really concerned because if you look at #2574 .. that closes #873 and I am the guy saying he lost 2.1GB of data in 2014 on #873 -- 19:55:38 GMT So this subject is kind of close to heart.