Method: Redis::Commands::Bitmaps#bitcount
- Defined in:
- lib/redis/commands/bitmaps.rb
#bitcount(key, start = 0, stop = -1)) ⇒ Integer
Count the number of set bits in a range of the string value stored at key.
31 32 33 |
# File 'lib/redis/commands/bitmaps.rb', line 31 def bitcount(key, start = 0, stop = -1) send_command([:bitcount, key, start, stop]) end |