Module: BitAnalytics::MixinCounts
- Defined in:
- lib/bit_analytics.rb
Overview
Extends with an obj.get_count() that uses BITCOUNT to count all the events. Supports also __len__
Instance Method Summary collapse
Instance Method Details
#get_count ⇒ Object
139 140 141 |
# File 'lib/bit_analytics.rb', line 139 def get_count @redis.bitcount(@redis_key) end |
#length ⇒ Object
143 144 145 |
# File 'lib/bit_analytics.rb', line 143 def length return get_count end |