Able to set/config default ttl for cache?

is there way for to config streamlit to have change cache default ttl? name thing reasoning here is we have shared multi page streamlit applicatiion, where want to have some better enforcement that when caching used that not persisted indefinitely (do to wanting to keep memory footprint as low as possible on server, and to help protect against fact that data serving which largely caching from like database, api, etc are ones that can change so only caching for small amount of time is preferred).

Isn’t st.cache’s or st.experimental_memo’s ttl parameter sufficient?

yea thinking about this more to get what I desire would just be some wrapper over what you are talking about

1 Like