lib/redis.rb in redis-3.0.6 vs lib/redis.rb in redis-3.0.7

- old
+ new

@@ -25,10 +25,11 @@ end include MonitorMixin def initialize(options = {}) + @options = options.dup @original_client = @client = Client.new(options) super() # Monitor#initialize end @@ -126,11 +127,11 @@ end end # Get or set server configuration parameters. # - # @param [String] action e.g. `get`, `set`, `resetstat` + # @param [Symbol] action e.g. `:get`, `:set`, `:resetstat` # @return [String, Hash] string reply, or hash when retrieving more than one # property with `CONFIG GET` def config(action, *args) synchronize do |client| client.call([:config, action] + args) do |reply| @@ -2418,9 +2419,13 @@ @original_client.id end def inspect "#<Redis client v#{Redis::VERSION} for #{id}>" + end + + def dup + self.class.new(@options) end def method_missing(command, *args) synchronize do |client| client.call([command] + args)