mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
9 lines
261 B
Lua
9 lines
261 B
Lua
package.path = package.path .. "./?.lua;/usr/local/etc/haproxy/scripts/?.lua"
|
|
require("redis")
|
|
|
|
local redis = require 'redis'
|
|
local client = redis.connect('127.0.0.1', 6379)
|
|
local response = client:ping()
|
|
local dummy = client:get('dummy')
|
|
print(dummy)
|