How to select redis DB using lua make_request?

19 views
Skip to first unread message

Aki

unread,
Dec 14, 2017, 5:24:44 PM12/14/17
to rspamd
Using the lua redis API, I cant select the right database:

rspamd_redis.make_request({task=task, host='127.0.0.1:6379', db=1, callback=redis_cb, timeout=2.0, cmd='GET', args={redis_key}})

I verified that this works correctly by adding the requested key to database 0, but I need to select different database. I tried the names db, database, dbname but every time it only uses database 0. Help?

Vsevolod Stakhov

unread,
Dec 19, 2017, 1:06:45 PM12/19/17
to Aki, rspamd
> --


db='1'
Reply all
Reply to author
Forward
0 new messages