def page(pattern: SCAN_PATTERN, cursor: 0, page_size: 100)
      redis do |conn|
        total_size, digests = conn.multi do
          conn.scard(UNIQUE_SET)
          conn.sscan(UNIQUE_SET, cursor, match: pattern, count: page_size)
        end

        [total_size, digests[0], digests[1]]
      end
    end
def page(pattern: SCAN_PATTERN, cursor: 0, page_size: 100)
      redis do |conn|
        total_size, digests = conn.multi do
          conn.scard(UNIQUE_SET)
          conn.sscan(UNIQUE_SET, cursor, match: pattern, count: page_size)
        end

        [total_size, digests[0], digests[1]]
      end
    end
Paginate unique digests

 @param [String] pattern a pattern to match with
 @param [Integer] cursor the maximum number to match
 @param [Integer] page_size the current cursor position

 @return [Array<String>] with unique digests