# @st.cache errors

**URL:** <https://discuss.streamlit.io/t/st-cache-errors/37536>\
**Category:** Using Streamlit\
**Created:** [February 10, 2023, 6:45pm UTC](https://discuss.streamlit.io/t/st-cache-errors/37536 "2023-02-10T18:45:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Harper](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/jason_harper/32/17475_2.png) [@Jason\_Harper](https://discuss.streamlit.io/u/Jason_Harper)\
**Post date:** [February 10, 2023, 6:45pm UTC](https://discuss.streamlit.io/t/st-cache-errors/37536/1 "2023-02-10T18:45:55Z")

</div>

I am currently working on an app and I was using the old st.experimental\_memo and st.experimental\_singleton but I saw that Streamlit will be migrating to @st.cache. I have made the transition from st.experimental to st.cache but I still seem to get an error message relating to st.cache\_data and st.cache\_resource. Can someone please help me with this? I have looked through Streamlit’s documentation but I don’t see anything about st.cache\_data or st.cache\_resource.

error message below :  
`st.cache` is deprecated. Please use one of Streamlit’s new caching commands, `st.cache_data` or `st.cache_resource` .

---

<div class="post-metadata">

**Author:** ![willhuang](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/willhuang/32/8445_2.png) [@willhuang](https://discuss.streamlit.io/u/willhuang)\
**Post date:** [February 10, 2023, 6:54pm UTC](https://discuss.streamlit.io/t/st-cache-errors/37536/2 "2023-02-10T18:54:02Z")

</div>

Hi @Jason_Harper ,  
Here is a link for our caching. Lmk if you need more help than this.

> **[Caching - Streamlit Docs](https://docs.streamlit.io/library/advanced-features/caching)**

---

<div class="post-metadata">

**Author:** ![Jason\_Harper](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/jason_harper/32/17475_2.png) [@Jason\_Harper](https://discuss.streamlit.io/u/Jason_Harper)\
**Post date:** [February 10, 2023, 7:10pm UTC](https://discuss.streamlit.io/t/st-cache-errors/37536/3 "2023-02-10T19:10:18Z")

</div>

Hey @willhuang,  
Thank you so much for sending this link. This will certainly be helpful, I really appreciate it.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [February 10, 2024, 7:10pm UTC](https://discuss.streamlit.io/t/st-cache-errors/37536/4 "2024-02-10T19:10:36Z")

</div>

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