lib/redis/bitops/sparse_bitmap.rb
# Returns lambda creating SparseBitmap objects using @redis as the connection.
#
Returns lambda creating SparseBitmap objects using @redis as the connection.
Returns lambda creating SparseBitmap objects using @redis as the connection .
def bitmap_factory
        lambda do |key|
          @redis.set "#{key}:tracking_chunks", true
          @redis.sparse_bitmap(key, @bytes_per_chunk)
        end
      end
def bitmap_factory lambda do | key | @redis . set "#{key}:tracking_chunks" , true @redis . sparse_bitmap ( key , @bytes_per_chunk ) end end
Returns lambda creating SparseBitmap objects using @redis as the connection.
Returns lambda creating SparseBitmap objects using @redis as the connection .