redis-namespace 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of redis-namespace might be problematic. Click here for more details.
- data/lib/redis/namespace.rb +4 -0
- data/spec/redis_spec.rb +1 -0
- metadata +2 -2
data/lib/redis/namespace.rb
CHANGED
@@ -152,6 +152,10 @@ class Redis
|
|
152
152
|
@redis.respond_to?(command)
|
153
153
|
end
|
154
154
|
|
155
|
+
def keys(query = nil)
|
156
|
+
query.nil? ? super("*") : super
|
157
|
+
end
|
158
|
+
|
155
159
|
def method_missing(command, *args, &block)
|
156
160
|
(before, after) = COMMANDS[command.to_s] ||
|
157
161
|
COMMANDS[ALIASES[command.to_s]]
|
data/spec/redis_spec.rb
CHANGED