Caching is a small key-value shortcut in front of expensive work. Use it for data that is safe to reuse for a short time, such as verification codes, counters, summaries, or computed options.
- Document cache is close to one model.
- Service memory is useful for service-level state or shared helper values.
- The provider can be sqlite/libsql or redis depending on runtime mode.