package
0.0.0-20221118014540-79c50470ff02
Repository: https://github.com/syhlion/glua-libs.git
Documentation: pkg.go.dev

# README

redis

Usage

local redis = require("redis")

local conn, err = redis.open("127.0.0.1:6379",0)
if err then error(err) end


local reply, err = conn:exec("SET",{"KKK","abcdef"})
if err then error(err) end

print(reply)
local reply, err = conn:exec("ZADD",{"page_rank","10","google.com"})
if err then error(err) end
local reply, err = conn:exec("ZADD",{"page_rank","11","yahoo.com"})
if err then error(err) end

local replys, err = conn:exec("ZRANGE",{"page_rank",0,-1,"WITHSCORES"})
if err then error(err) end

for i, v in pairs(replys) do
    print(i,v)
end


conn:close()

# Functions

No description provided by the author
No description provided by the author
Loader is the module loader function.
No description provided by the author
Preload adds db to the given Lua state's package.preload table.

# Constants

max idle connections.
max open connections.