openresty下lua 鏈接redis 的方式

可用在階段:set_by_lua_file、init_by_lua_file。是否全部階段均可以用,還須要測試。redis  local cmd = "redis-cli -h 192.168.1.13 -p 6379 -n 0 get service"  local f = io.popen(cmd)   ----獲取對應的數據---  local redis_server = tostring
相關文章
相關標籤/搜索