def METHOD_NAME(self, p):
    """
    Return the list of integers ``n`` for which the database of Conway
    polynomials contains the polynomial of degree ``n`` over ``GF(p)``.
    EXAMPLES::
        sage: c = ConwayPolynomials()
        sage: c.degrees(60821)
        [1, 2, 3, 4]
        sage: c.degrees(next_prime(10^7))
        []
    """
    if p not in self._store:
        return []
    return list(self._store[p])