Comments (6)
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.
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.
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.
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?
from codeigniter-redis.
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.
@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)
- _auth returns "invalid password" when $password === '' HOT 3
- In the Constructor, connection error should show $config['port'] HOT 1
- Some data does not properly return from redis HOT 6
- Set json string as value HOT 5
- test_empty_hash_values fails after changing bulk reply code HOT 8
- The library sometimes returns OK when getting data HOT 3
- Unable to connect to redis with a correct password HOT 7
- Cannot get limit to work - could be related to spaces?
- mget have no return and aways waiting
- _multi_bulk_reply is not working
- Redis pipeline - batch get HOT 4
- multi & exec hmget failed HOT 5
- method _bulk_reply is not returning the correct data HOT 3
- Deprecating this library HOT 2
- No way to check if redis is running HOT 4
- Any Support for Codeigniter 3+
- 使用scan命令时返回值出错
- How can i set time for expire. HOT 3
- $this->redis->command('PING'); Error :: command On null()
- How can i use this in cli? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeigniter-redis.