lib/redis_cluster/client.rb in redis_cluster-0.3.1 vs lib/redis_cluster/client.rb in redis_cluster-0.3.2

- old
+ new

@@ -116,9 +116,14 @@ def method_missing(method, *args, &block) execute(method, args, &block) end + # Add default argument to keys to match redis client interface + def keys(glob = "*", &block) + execute("keys", [glob], &block) + end + # Closes all open connections and reloads the client pool. # # Normally host information from the last time the node pool was reloaded # is used, but if the `use_initial_hosts` is set to `true`, then the client # is completely refreshed and the hosts that were specified when creating