Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

docs: update Streamlit guide to reflect caching changes (#5095)

Srihari Thyagarajan88d069bd673f
diff --git a/docs/guides/coming_from/streamlit.md b/docs/guides/coming_from/streamlit.md
index 17381adcd1..217a1139cb 100644
--- a/docs/guides/coming_from/streamlit.md
+++ b/docs/guides/coming_from/streamlit.md
@@ -215,11 +215,13 @@ def expensive_computation(args):
marimo:
```python
def expensive_computation(args):
# ...
```
+marimo provides [`mo.cache`](../../api/caching.md/#marimo.cache) and [`mo.lru_cache`](../../api/caching.md/#marimo.lru_cache) for caching function return values, as well as [`mo.persistent_cache`](../../api/caching.md/#marimo.persistent_cache) for caching variables to disk.
+
### 8. Session State
Streamlit uses `st.session_state` for persisting data. In marimo, you can use