Method: Kredis::Types::Proxying#initialize

Defined in:
lib/kredis/types/proxying.rb

#initialize(redis, key, **options) ⇒ Proxying

Returns a new instance of Proxying.



12
13
14
15
16
17
# File 'lib/kredis/types/proxying.rb', line 12

def initialize(redis, key, **options)
  @redis = redis
  @key = key
  @proxy = Kredis::Types::Proxy.new(redis, key)
  options.each { |key, value| send("#{key}=", value) }
end