lib/bloomfilter/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|
          yield Zlib.crc32("#{key}:#{i+@opts[:seed]}") % @opts[:size]
        end
      end
def indexes_for ( key ) indexes = [ ] @opts [ :hashes ] . times do | i | yield Zlib . crc32 ( "#{key}:#{i+@opts[:seed]}" ) % @opts [ :size ] end end
compute index offsets for provided key
compute index offsets for provided key
key