What is the difference between persist() and cache()?
Answer Posted / Hari Shankar
"The main difference lies in storage level: cache() stores data in memory, while persist() allows for more flexibility by allowing you to specify a storage level (such as MEMORY_ONLY, MEMORY_AND_DISK, or OFF_HEAP)."n
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers