Sha256: 90cf2f96c7f6402b5f16859c933c51ac8248e2b13e24bf7356756593295710e5

Contents?: true

Size: 342 Bytes

Versions: 8

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

class ActiveOrm::Redis::HyperLogLog < ActiveOrm::Redis::Base
  class << self

    def create(key, member)
      client.pfadd(normalize_key(key), member)
    end

    def count(*args)
      client.pfcount(args)
    end

    def merge(key, *keys)
      client.pfmerge(normalize_key(key), keys)
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
active_orm-5.1.0 lib/active_orm/redis/hyper_log_log.rb
active_orm-5.0.6 lib/active_orm/redis/hyper_log_log.rb
active_orm-5.0.5 lib/active_orm/redis/hyper_log_log.rb
active_orm-5.0.4 lib/active_orm/redis/hyper_log_log.rb
active_orm-5.0.3 lib/active_orm/redis/hyper_log_log.rb
active_orm-5.0.2 lib/active_orm/redis/hyper_log_log.rb
active_orm-5.0.1 lib/active_orm/redis/hyper_log_log.rb
active_orm-5.0.0 lib/active_orm/redis/hyper_log_log.rb