lua-resty-redis
lua-resty-redis copied to clipboard
Lua redis client driver for the ngx_lua based on the cosocket API
i made some script like below. ```bash default.conf location /proxy { proxy_pass http://127.0.0.1:8001/; rewrite_by_lua_file ./lua/set_by_file.lua; } ######### lua/set_by_file.lua local pretty = require "resty.prettycjson" function getval(v, def) if v == nil...
Hello ChunGe, Since this library cannot be used in code contexts like init_by_lua*, set_by_lua*, log_by_lua*, and header_filter_by_lua* .I got response header using ngx.resp.get_headers() in the pharse of header_filter_by_lua. And I...
@agentzh hello! Here's my code, please help me,thank you! ``` local redis = require "resty.redis" local cjson = require "cjson.safe" local M = {} local tab_getn = table.getn local redisidx...
I don't know is it a good solution, or is it enough? Seems to work. Correct me, if a'm wrong. (This closes #135 )
Hi! I've found a vary bad thing... as i have investigated, lua-resty-redis loose 64bit number precision, when saving numbers to redis. See examples below. Lets assume, we have a number...
I've been running into trouble trying to open a connection from one docker container to another. I've set up redis to run from the base docker alpine image with minimal...
Useful in contexts where the cosocket api is not available - such as init_by_lua. I used this to load a script into lua once, set a shared memory variable, and...
Cluster
Hi! Is it possible to implement cluster functionality to core of this library? I'm not sure if I am able to do it myself, I tried, but code looks bad...
when i use redis in lua, i got this problem here is the file structure filename : init.lua ``` redis = require "resty.redis" ssl = require "ngx.ssl" cjson = require...
Hi,ALL Help see https://groups.google.com/forum/?fromgroups=#!forum/openresty Thanks