superfeedr-em-redis 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/em-redis/redis_protocol.rb +3 -0
- data/lib/em-redis/version.rb +1 -1
- metadata +2 -2
@@ -20,6 +20,8 @@ module EventMachine
|
|
20
20
|
|
21
21
|
BOOLEAN_PROCESSOR = lambda{|r| r == 1 }
|
22
22
|
|
23
|
+
TYPE_PROCESSOR = lambda { |t| t == "none" ? nil : t }
|
24
|
+
|
23
25
|
REPLY_PROCESSOR = {
|
24
26
|
"exists" => BOOLEAN_PROCESSOR,
|
25
27
|
"sismember" => BOOLEAN_PROCESSOR,
|
@@ -37,6 +39,7 @@ module EventMachine
|
|
37
39
|
"hset" => BOOLEAN_PROCESSOR,
|
38
40
|
"hdel" => BOOLEAN_PROCESSOR,
|
39
41
|
"hexists" => BOOLEAN_PROCESSOR,
|
42
|
+
"type" => TYPE_PROCESSOR,
|
40
43
|
"keys" => lambda {|r|
|
41
44
|
if r.is_a?(Array)
|
42
45
|
r
|
data/lib/em-redis/version.rb
CHANGED