Cache Upper limit?

Pretty much the headline. Is there a limit to how much cache can be stored? Iโ€™m deploying on AWS btw, so technically I can cache however much I want, right?

Hey @mansidak,

Thanks for sharing this question.

If youโ€™re deploying on your own infrastructure, your cache will be limited by the amount of resources you have allocated to the app. You can use the ttl and max_entries parameters to control how long something is cached for or the max number of entries stored in the cache.

Apps deployed on Streamlit Community Cloud are typically limited to 1 GB of resources, so the cache would have to consume less than that if your app is deployed there.

Hope this helps!