lua-resty-redis icon indicating copy to clipboard operation
lua-resty-redis copied to clipboard

Lua redis client driver for the ngx_lua based on the cosocket API

Results 87 lua-resty-redis issues
Sort by recently updated
recently updated
newest added
trafficstars

benchmark code: [redis_perf.lua.txt](https://github.com/openresty/lua-resty-redis/files/9527952/redis_perf.lua.txt) result: ![2d4a8ce7d3c49507f74e9d7feccb726](https://user-images.githubusercontent.com/69657117/189155278-ae908efb-78a0-4304-838a-0c68dfb85edd.jpg) setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0 sendto(5, "*2\r\n$4\r\nincr\r\n$3\r\ncat\r\n*2\r\n$4\r\ni"..., 184, 0, NULL, 0) = 184 epoll_wait(3, [{EPOLLIN|EPOLLOUT, {u32=15020632, u64=15020632}}], 512, 60000) = 1 recvfrom(5, ":4459457\r\n:4459458\r\n:4459459\r\n:4"...,...

This code being executed from the context of `init_by_lua_file` is giving the below error: ``` local red = redis:new() ``` Looking at this - https://github.com/openresty/lua-resty-redis#limitations It says: ``` This library...

Hey. i get this error, if i compile this module with nginx 1.24: /opt/ngx_http_redis-0.3.9/ngx_http_redis_module.c: In function ‘ngx_http_redis_process_header’: /opt/ngx_http_redis-0.3.9/ngx_http_redis_module.c:585:26: error: ‘ngx_http_upstream_headers_in_t’ {aka ‘struct ’} has no member named ‘content_encoding’ 585 |...

I am writing a test to test the performance of reids. The following is my test code. I used 2000 threads to test,and listen to the tcp connection of redis....

In my nginx.conf for openresty i am using two Redis one is for storing SSL certificate in AWS cloud and another Redis is in the same server of openresty for...

I am using https://github.com/openresty/lua-resty-redis#connect method and keepalive() i have kept pool size to 200 and backlog 20, Still it creates 2000 connections to redis during a load test. `is_connected, err...

In a case of a sudden connection loss Redis clients are not able detect network problems, and will be listening for Pub/Sub messages on a broken TCP connection for hours,...

I have tried creating a connection with pool_size = 1 and backlog=10 but every concurrent request creating new connection. For 5 concurrent request this is the output. netstat | grep...

`local red = redis:new() red:set_timeout(10000) local options_table = {} options_table.pool_size = 1 options_table.backlog = 1 local ok, err = red:connect(redis_endpoint, redis_port, options_table) ngx.say("reused times: ", red:get_reused_times())` How to make sure...

The current opm version is outdated. The latest opm version is 0.27 while the current version from the openresty distribution is 0.30: https://opm.openresty.org/package/openresty/lua-resty-redis/ I think either the package should be...