pyspark.streaming.DStream.cache

DStream.cache() → pyspark.streaming.dstream.DStream[T]

Persist the RDDs of this DStream with the default storage level (MEMORY_ONLY).