Clear a specific cache (@st.experimental_memo)

Hello,

I’m struggling with the new caching options.
I have data in a MYSQL database that I read using a function (“load_data”) and I use st.experimental_memo to cache it. I have another function (“update_database”) that enables the users to modify the database. I would like to clear the cache of the function “load_data” if “update_database” is called. I do not want to clear the cache of other functions.
How can I clear this specific cache? Am I missing something?

Many thanks for your help,
Léa

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