我想知道缓存的RDD的范围是什么。例如:
// Cache an RDD.
rdd.cache
// Pass the RDD to a method of another class.
otherClass.calculate(rdd) // This method performs various actions.
// Pass the RDD to a method of the same class.
calculate(rdd) // This method also performs some actions.
// Perform an action in