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!

Hi @Caroline if app is deployed on VM of 8GB then cache will still be limited to 1GB ?

The cache limit to the app should be however much available memory there is on the machine you’re deploying on.

2 Likes

Thank You !

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