内容摘要:复制server{            location/pool{            content_by_lua_block{            localredis=require"r

复制server {                 location /pool {                     content_by_lua_block {                         local redis = require "resty.redis"                        local red = redis:new()                         local ok,语言中
 err = red:connect("127.0.0.1", 6379)                         if not ok then                             ngx.say("failed to connect: ", err)                             return                        end                         ok, err = red:set("hello", "world")                         if not ok then                             return                        end                         red:set_keepalive(10000, 100)                     }                 }             }             1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.