Advanced

Caching

The caching feature is planned for a future OmniSvelte release.

Caching (Planned)

This feature is on the OmniSvelte roadmap and is not yet implemented.

See the public roadmap for the target release and design notes.

What's planned

  • Redis and in-memory cache drivers
  • Model-level cache invalidation on create/update/delete
  • cache(key, ttl, fn) helper for request-level memoisation
  • omni cache:clear and omni cache:stats CLI commands

Proposed API

js
// svelte.config.js (proposed)
omni: {
  caching: { enabled: true }
}

Want to help build this?

Open a GitHub Discussion to share ideas or contribute to the design.