Sha256: 7f33e2fe4b0282be40483992eef4e4012e5342cc98ecbb8d2e09eca924c85413

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

class Kredis::Types::Proxy
  def initialize(redis, key)
    @redis, @key = redis, key
  end

  def multi(...)
    @redis.multi(...)
  end

  def method_missing(method, *args, **kwargs)
    Kredis.logger&.debug "[Kredis] #{method} #{@key} #{args.inspect if args.compact_blank.any?} #{kwargs.inspect if kwargs.compact_blank.any?}".chomp
    @redis.public_send method, @key, *args, **kwargs
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kredis-0.1.2 lib/kredis/types/proxy.rb