Class: ActiveOrm::Redis::HyperLogLog
Instance Attribute Summary
#client
Attributes inherited from Base
#configuration
Class Method Summary
collapse
client, #initialize
Methods included from Base
#evaluate, #evaluate?
Methods inherited from Base
configuration, configuration=, configure
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
|