Sha256: a5637001743ef2d376550a4e6c11787c8d300560bc7ac02df633ba4b4755952f

Contents?: true

Size: 279 Bytes

Versions: 8

Compression:

Stored size: 279 Bytes

Contents

class ActiveOrm::Redis::HyperLogLog < ActiveOrm::Redis

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

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

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

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
active_orm-2.4.0 lib/active_orm/redis/hyper_log_log.rb
active_orm-2.3.0 lib/active_orm/redis/hyper_log_log.rb
active_orm-2.2.0 lib/active_orm/redis/hyper_log_log.rb
active_orm-2.1.0 lib/active_orm/redis/hyper_log_log.rb
active_orm-2.0.2 lib/active_orm/redis/hyper_log_log.rb
active_orm-2.0.1 lib/active_orm/redis/hyper_log_log.rb
active_orm-2.0.0 lib/active_orm/redis/hyper_log_log.rb
active_orm-1.0.0 lib/active_orm/redis/hyper_log_log.rb