How do you reset the cache and can I remove only a specific object from the cache, but leave others?
To answer your first question, there are two ways to reset the cache:
Via the UI: click on the ☰ menu, then “Clear cache”. Or just press
cas a shortcut.
Via the command line: type
streamlit cache clear
In both cases, we clear the entire cache for you. This includes all objects stored in the memory cache as well as the disk cache (if any).
As for your second question: we don’t currently have a way to selectively remove items for the cache. It’s something we’ve been considering for a while, but have yet to find the best interface for it.
Alright, cool thanks.
hit us up with any questions you have in the future!