Coder Social home page Coder Social logo

Comments (6)

danhunsaker avatar danhunsaker commented on July 19, 2024

Had a similar issue with Redisent. In their case, when handling batch
responses, they were properly handling size values of -1 as null, but not
properly handling size values of 0. If a batch result has a length of
zero, Redis doesn't return any actual values - which makes sense, since it
said it wouldn't. Redisent was interpreting the next value to come back
from Redis as part of the response for the batch request, despite the fact
that it really had nothing to do with that batch whatsoever.

Not sure if we're seeing something similar here, though. I'll try to have
a look later today.

  • Daniel Hunsaker
    Owner / Developer, Lei's Genesis Experiment
    On Apr 8, 2013 8:07 AM, "xworm" [email protected] wrote:

After I used $this->redis->hvals('key') once in a request, I found I
can't use any method.
All of them return empty.


Reply to this email directly or view it on GitHubhttps://github.com//issues/33
.

from codeigniter-redis.

joelcox avatar joelcox commented on July 19, 2024

Hey everyone,

I tried recreating the issue, but failed to do so. See the commit above this comment. @xworm could you confirm this is what triggers the error?

Thanks for chiming in Dan. I'll look into that.

from codeigniter-redis.

yiichou avatar yiichou commented on July 19, 2024

I agree with @danhunsaker .
I had stored a php array(a hash, in fact) into redis which some of values were empty string. when I used hvals or hgetall, the issue happened. hkeys was okay.
I never tried to use hget to get the empty value, Let me try & see what will be shown.

from codeigniter-redis.

joelcox avatar joelcox commented on July 19, 2024

Thanks for your response xworm. I managed to create a failing test case using your last comment. See the commit above. I seemed to have fixed this issue (thanks for the pointer Dan!) in the next commit. Can you please confirm?

12ae166

from codeigniter-redis.

yiichou avatar yiichou commented on July 19, 2024

Thank you for your contribution to CI & Redis, Joelcox & Dan.
This is my first time submitting an issue (I'm not good at English) . I feel very exciting right now
Should I close the issue ?

from codeigniter-redis.

joelcox avatar joelcox commented on July 19, 2024

@xworm if this fixes your problem, you can indeed close it. Thanks for reporting your issue! We're unable to find all these edge cases ourselves, so it's thanks to people like you this library is more or less stable.

Thanks again and please keep sending in issues to project you use :)

from codeigniter-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.