Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
4d30232b
Commit
4d30232b
authored
May 23, 2009
by
antirez
Browse files
RubyRedis: now sets are returned as arrays again, and not as Set objects
parent
e9f0b930
Changes
1
Hide whitespace changes
Inline
Side-by-side
client-libraries/ruby_2/rubyredis.rb
View file @
4d30232b
...
...
@@ -28,7 +28,6 @@ class RedisClient
}
ConvertToBool
=
lambda
{
|
r
|
r
==
0
?
false
:
r
}
ConvertToSet
=
lambda
{
|
r
|
Set
.
new
(
r
)}
ReplyProcessor
=
{
"exists"
=>
ConvertToBool
,
...
...
@@ -41,10 +40,6 @@ class RedisClient
"del"
=>
ConvertToBool
,
"renamenx"
=>
ConvertToBool
,
"expire"
=>
ConvertToBool
,
"smembers"
=>
ConvertToSet
,
"sinter"
=>
ConvertToSet
,
"sunion"
=>
ConvertToSet
,
"sdiff"
=>
ConvertToSet
,
"keys"
=>
lambda
{
|
r
|
r
.
split
(
" "
)},
"info"
=>
lambda
{
|
r
|
info
=
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment