Class: Lite::Redis::HyperLogLog
- Inherits:
-
Base
- Object
- Base
- Lite::Redis::HyperLogLog
show all
- Defined in:
- lib/lite/redis/hyper_log_log.rb
Instance Attribute Summary
Attributes inherited from Base
#client
Instance Method Summary
collapse
Methods inherited from Base
#initialize, method_missing, #respond_to_method?, #respond_to_missing?
Instance Method Details
#count(*args) ⇒ Object
11
12
13
|
# File 'lib/lite/redis/hyper_log_log.rb', line 11
def count(*args)
client.pfcount(*args)
end
|
#create(key, member) ⇒ Object
7
8
9
|
# File 'lib/lite/redis/hyper_log_log.rb', line 7
def create(key, member)
client.pfadd(key.to_s, member)
end
|
#merge(key, *keys) ⇒ Object
15
16
17
|
# File 'lib/lite/redis/hyper_log_log.rb', line 15
def merge(key, *keys)
client.pfmerge(key.to_s, *keys)
end
|