redis-namespace 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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