lib/bloomfilter/counting_redis.rb
# compute index offsets for provided key
compute index offsets for provided key
compute index offsets for provided key
def indexes_for(key)
        indexes = []
        @opts[:hashes].times do |i|
          indexes.push "rbloom:" + (Zlib.crc32("#{key}:#{i+@opts[:seed]}") % @opts[:size]).to_s
        end
        indexes
      end
def indexes_for ( key ) indexes = [ ] @opts [ :hashes ] . times do | i | indexes . push "rbloom:" + ( Zlib . crc32 ( "#{key}:#{i+@opts[:seed]}" ) % @opts [ :size ] ) . to_s end indexes end
compute index offsets for provided key
compute index offsets for provided key
key