Comments (10)
The server changed return type, I fixed that in 1.x branch and Ezra merged. I guess that with 2.0 this was re-inserted. My fault as I did not wrote regression tests in my patch.
from redis-rb.
I used redis-rb 2.0.0 against redis 1.2.6.
from redis-rb.
Fixed in 2.0.1.
from redis-rb.
unfortunately, it's not fixed:
require 'rubygems'
require 'redis'
r = Redis.new
r.set("a b c", "x") # ==> "OK"
r.get("a b c") # ==> "x"
r.keys("*") # ==> ["a", "b", "c"]
I think this should be ["a b c"], right?
from redis-rb.
Even if a key with spaces works for all operations, I think it will never work with the keys
1.2.6 because it returns the keys as a space separated string. Sadly, there's no way to determine in that string the beginning and end of keys containing spaces.
The fix included in 2.0.1 assumes keys don't contain spaces, which is the best we can do at this point.
from redis-rb.
bummer. but thanks a lot for the quick reaction.
from redis-rb.
You're welcome.
from redis-rb.
Hey soveran, skaes: my patch checked if the returned value (from the low level decoding function) was an array or a string. If it's a string, just split it. This is the relevant commit:
http://github.com/ezmobius/redis-rb/commit/07579be932511f4fd5598dbbda1f0f154d836c76
I think we should fix this for 2.0.x as well.
Cheers,
Salvatore
from redis-rb.
antirez: yes, it's already fixed in 2.0.1. The other problem I think has no solution, though.
from redis-rb.
Sorry misunderstood the chat. The only fix is switching to Redis 2.0 indeed.
Cheers,
Salvatore
from redis-rb.
Related Issues (20)
- `.connection` method raises error in a Sentinel-based setup HOT 2
- redis-client requires Redis 6+ with HELLO command available HOT 2
- SORT_RO support HOT 1
- `ERR value is not an integer or out of range` after redis.ping HOT 4
- LMPOP not working HOT 5
- Unable to load application: TypeError: superclass mismatch for class Cluster HOT 7
- status
- Sentinel TLS: Sentinel TLS not supported HOT 5
- Configure Rails redis_cache_store with redis 5 HOT 1
- Unable to create redis cluster HOT 1
- Add support for redis Time Series module HOT 1
- OpenSSL::SSL::SSLError: SSL_write: unsupported method HOT 1
- Max number clients reached using subscribe_with_timeout HOT 2
- [Doc] Improve documentation about acceptable regular expressions pattern HOT 4
- Behavior of `pipelined { multi }` changed HOT 1
- 5.x seems to break IPv6 URL parsing HOT 1
- Redis::Cluster attempting Redis connection during asset precompilation HOT 5
- initialize': no implicit conversion of String into Integer (TypeError) HOT 1
- `:blpop` returns an exception when using sentinels HOT 3
- Proper documentation on how to setup rails to connect to a redis cluster for session management HOT 14
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 redis-rb.