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 length.
Instance Method Summary collapse
Instance Method Details
#get_count ⇒ Object
140 141 142 |
# File 'lib/bit_analytics.rb', line 140 def get_count @redis.bitcount(@redis_key) end |
#length ⇒ Object
144 145 146 |
# File 'lib/bit_analytics.rb', line 144 def length return get_count end |