Git Product home page Git Product logo

lua-resty-redis-cluster's Introduction

Name

lua-resty-redis-cluster the content is to be add.

lua-resty-redis-cluster's People

Contributors

cuiweixie avatar lblasc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lua-resty-redis-cluster's Issues

limitations?

code

    if ngx.ctx.cache == nil then
        ngx.ctx.cache = redis_cluster:new(config.redis_config)
    end
    local v, err = ngx.ctx.cache:get(key)

In the case of concurrent will appear such mistakes

2016/05/27 09:52:12 [error] 32291#0: *30184 lua entry thread aborted: runtime error: /opt/apps/zkv/lua/resty/rediscluster.lua:217: bad request

The resty.redis object instance cannot be stored in a Lua variable at the Lua module level,
result in bad race conditions when concurrent requests are trying to use the same resty.redis instance (you would see the "bad request" or "socket busy" error to be returned from the method calls).

https://github.com/openresty/lua-resty-redis#limitations

How should I solve this problem?

thx

attempt to index local 'slots' (a nil value)

2018/05/28 15:38:40 [error] 5783#504883: *29 lua entry thread aborted: runtime error: ...xt_virus_openresty-code//lua/libs/resty/rediscluster.lua:207: attempt to index local 'slots' (a nil value)
stack traceback:
coroutine 0:
...xt_virus_openresty-code//lua/libs/resty/rediscluster.lua: in function 'get'

你好,我试用了一下,有个问题应该没有解决:

你这个是在new的时候把集群信息获取到。如果在new之后,某个分片挂掉了,(刚好需要使用哪个上面的分片数据)那么client就用不了了。
请问这个问题需要怎么解决?即客户端如何及时感知集群的状态变化?

rediscluster.lua 中关于expire没有起到设置有效期的效果

问题描述:
1、源码中没有开启expire,当被调用设置有效期时,报错:
2020/07/12 15:58:01 [error] 9873#0: *248 lua entry thread aborted: runtime error: /apps/nginx/conf/waf/waf.lua:168: attempt to call method 'expire' (a nil value)
stack traceback:
coroutine 0:
2、rediscluster 放开注释的expire命令时候不跑错了,但是设置的key都没有过期时间。

现在需要怎么改进解决下这个问题,请教作者还有各位大神回复,谢谢

为啥212行变量redis_client为全局变量?

有个问题请教下,212行的变量redis_client为全局变量,导致并发根本不行,2个并发都有失败的请求,还有个问题,commands好多redis的命令为何注释掉了,尤其是"del"。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.