Class: ActiveOrm::Redis::HyperLogLog

Inherits:
ActiveOrm::Redis show all
Defined in:
lib/active_orm/redis/hyper_log_log.rb

Instance Attribute Summary

Attributes inherited from ActiveOrm::Redis

#client

Attributes inherited from Base

#configuration

Class Method Summary collapse

Methods inherited from ActiveOrm::Redis

client, #initialize

Methods included from Base

#evaluate, #evaluate?

Methods inherited from Base

configuration, configuration=, configure

Constructor Details

This class inherits a constructor from ActiveOrm::Redis

Class Method Details

.count(*args) ⇒ Object



7
8
9
# File 'lib/active_orm/redis/hyper_log_log.rb', line 7

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

.create(key, member) ⇒ Object



3
4
5
# File 'lib/active_orm/redis/hyper_log_log.rb', line 3

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

.merge(key, *keys) ⇒ Object



11
12
13
# File 'lib/active_orm/redis/hyper_log_log.rb', line 11

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