Sha256: 5a0aed05450a044cd89018b1270f1f09cbd7c67f3a2307a9c21fe274eb3af96b

Contents?: true

Size: 280 Bytes

Versions: 5

Compression:

Stored size: 280 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

5 entries across 5 versions & 1 rubygems

Version Path
active_orm-4.0.3 lib/active_orm/redis/hyper_log_log.rb
active_orm-4.0.2 lib/active_orm/redis/hyper_log_log.rb
active_orm-4.0.1 lib/active_orm/redis/hyper_log_log.rb
active_orm-4.0.0 lib/active_orm/redis/hyper_log_log.rb
active_orm-3.0.0 lib/active_orm/redis/hyper_log_log.rb