Recipe
This recipe shows how to usepersistentStore (TypeScript) or persistent_store (Python) to persist data across executions of the same project.
TypeScript
How it works
- Check the cache - Use
persistentStore.get()/persistent_store.get()to look for existing data - Return cached data - If found, return immediately without making external requests
- Fetch and store - On cache miss, fetch data and store it with
persistentStore.set()/persistent_store.set()for future runs