What happens if you set persist parameter to False in streamlit.cache_data()?

I am using Python 3.12.0 and Streamlit 1.28.0. I am running this app locally.
I don’t have an error message to share, just a question. I am very new to caching, so apologies if this is a foolish question. When you set the persist parameter to False, what does this mean? Does this mean it doesn’t persist from session to session? Meaning if you close the app, and re-open it, your data wouldn’t be saved? The scenario I need is that the data will be cached within the session, but once the app is closed it restarts and the cached data is gone. Thanks for any answers in advance. I am very new to this.

You use st.session_state for that instead of caching.

1 Like

Thank you!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.