> For the complete documentation index, see [llms.txt](https://jinhoko.gitbook.io/apache-spark-assembly/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jinhoko.gitbook.io/apache-spark-assembly/core-execution-related/untitled/cache-and-persist.md).

# Cache & Persist

{% hint style="info" %}
cache persist 명령 넣으면 내부에 어떻게 되는지,

cache = persist(mem)임, 완전히 동일.

이후 persist할 때 sc의 persistentRdds에 추가하고, 나중에 computation할때 값을 참조함

unpersist할 때는 blockmanager에서 제거하고, persistentRdd에서 뺀 후 listenerBus에 다 지우라고 명
{% endhint %}
