01:19:24 GMT ok, have python writing to my redis using walrus now 01:19:34 GMT can I dump the contents of the db using the redis cli? 01:19:44 GMT what to see what is happening as it is updated 01:29:43 GMT ah, worked it out 12:29:07 GMT Hi guys, i am new to redis DB. Could someone provide any tutorial link with deep dive in redis. 12:29:15 GMT I went through the redis.io tutorial 12:29:30 GMT would love to understand redis' architecture in much more detail 12:51:48 GMT Anyone know how to set the sentinel log? I don’t see it in the conf examples/options anywhere 13:00:37 GMT mrgreenfur: logfile "path/to/your/file" 13:00:52 GMT badboy_: oh, thats simple enough, thanks 13:01:44 GMT the same with dir? 13:03:58 GMT well, given that Sentinel does not store any data, there is no use for dir 13:14:00 GMT hrm, I see it autogenerates one, but maybe it’ sjust the config file it’s writing as it runs 15:21:40 GMT Is there a way to run a command on a key when it expires, and based on the output of that command, move the data out of redis or to another redis db? 15:22:00 GMT mikereca: no 15:22:13 GMT :( not even with a Lua plugin? 15:22:15 GMT you can in theory listen to keyspace notifications, but that won't give you the actual data 15:22:19 GMT no, no lua plugins either 15:22:22 GMT ah 15:23:03 GMT duplicate your expiring data into a non-expiring key (or with a longer expiry) and use the second key from your namespace notification 15:23:12 GMT s/duplicate/indirect/ if you want to save RAM 15:25:17 GMT @Habbie: that might actually work pretty well 15:25:31 GMT :) 15:28:23 GMT @Habbie: you can't do a lookup on an expiring key, right? 15:32:10 GMT mikereca, no, but you could do key and _key so you can always find the other one by just prepending _ 15:32:16 GMT mikereca, this is a very rough idea to be clear, i haven't done this 15:37:58 GMT Habbie, I'll let this simmer for a bit. Thanks for your and @badboy_'s help! 19:11:13 GMT wahts the best way to use a nosql like redis. say i have some data in my database. Would i use some kinda of cron job to update the redis from database every week? or simply manually input key,values into redis and exclude from database? 19:13:58 GMT the way we do it: primary data in postgres, trigger functions attached to tables which emit a NOTIFY, a custom daemon that connects to postgres and redis and listens to those notifications and writes the data to redis (explanation simplified) 19:14:43 GMT awesome minus 19:15:03 GMT you don't have to do it that complicated, but you're not gonna get past writing/using a daemon like that 19:15:31 GMT you create a daemon based off linux terminal 19:15:44 GMT to listen to postgre and redis 19:16:02 GMT the daemon's written in python (with twisted) 19:16:10 GMT i see 19:16:55 GMT the simplest way is, as you already suggested, to run a cron job that runs a script that copies the data 19:17:21 GMT if your database items have modification dates you can use those to do incremental updates 19:17:43 GMT thats true 19:17:54 GMT idk if php supports redis very well 19:18:21 GMT or actually..i should just use linux bash to communicate between mysql and redis with a cron job 19:18:23 GMT there's at least 2 libraries for it 19:18:36 GMT nah, bash won't quite work 19:18:44 GMT darn 19:18:45 GMT php is fine 19:18:54 GMT the thing is.. 19:19:25 GMT if i use php. do i set it up to run at certain times? the way i think of php is that once php is loaded it'll run...unless of course i give it a timer 19:20:25 GMT well, you can either start the script every x minutes via a cronjob or just write a daemon in php too 19:37:43 GMT thats true 19:38:08 GMT good idea. okay just wondering how its done out there in the real world. im totally new to no sql so wasnt sure what was the best practices out there. 20:44:23 GMT i can highly recommend predis for php