Giter Club home page Giter Club logo

Comments (6)

yuchao-java avatar yuchao-java commented on July 29, 2024

the same question, after I execute set key1 value1 in redis-cli cmd,
local result2, err =red:get("key1"), the result2 is userdata: NULL when the red.get_reused_times() > 1, and the result2 is aaa when the red.get_reused_times() == 0.
How to get new data in redis when the data is changed?

from lua-resty-redis.

zhuizhuhaomeng avatar zhuizhuhaomeng commented on July 29, 2024

Use tcpdump to capture the packets.
And then use wireshark to look into this issue.

from lua-resty-redis.

yuchao-java avatar yuchao-java commented on July 29, 2024

Even if rebooting redis and kong doesn't work, the problem remains, do you have some quick solutions? thx

from lua-resty-redis.

yuchao-java avatar yuchao-java commented on July 29, 2024

Use tcpdump to capture the packets. And then use wireshark to look into this issue.

The tcp stream that I captured by using kong to operate redis through lua-resty-redis. For the first time, 44 data are normally obtained in the set whose key is api:all_allow_urls, scard it also displays 44 data, and the content of string whose key is bbb is 0000. When the connection is put back into the connection pool and reused to read again, the set contains only 37 data and the contents of the bbb are empty.
Uploading redis_tcp_stream.log…

See attachment for details, Please!

from lua-resty-redis.

zhuizhuhaomeng avatar zhuizhuhaomeng commented on July 29, 2024

can't find the attachment @yuchao-java

from lua-resty-redis.

yuchao-java avatar yuchao-java commented on July 29, 2024

redis_tcp_stream.log
sorry, maybe something wrong, here

from lua-resty-redis.

Related Issues (20)

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.