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