--[[ ¡ ¡ ¡ ALL GLORY TO GLORIA ! ! ! =============================== --]] local _M = { author='Mikhail Che ', version='0.14', redis_sock = 'unix:/tmp/redis.sock', -- redis.conf: unixsocketperm 777!!! --~ or --~ redis_host = "127.0.0.1", --~ redis_port = 6379, redis_timeout = 200,-- connection timeout for redis in ms. don't set this too high! redis_poolsize = 15, -- maximal size of the pool. Puts the current Redis connection immediately into the ngx_lua cosocket connection pool. redis_keepalive = 0, -- ms. (0 - persistent) You can specify the max idle timeout (in ms) when the connection is in the pool and the maximal size of the pool every nginx worker process. prefix = "ip_blacklist", -- for Redis keys and for log strings key_delim = ':', -- for join Redis keys --[[ There are four types of Redis keys: 1. Counter: :count: