Skip to content

src/cache-storage

Memory-first AppKit cache storage with soft-fail Lakebase persistence.

AppKit’s PersistentStorage.initialize() runs DDL migrations and throws on any step failure. With cache.strictPersistence: true that throw makes CacheManager silently disable the cache. This wraps the same storage, still runs its migrations, but logs a failed step instead of throwing so a usable table keeps serving.

PersistentStorage is not on AppKit’s public export map. The deep load is lazy and best-effort: if the installed AppKit layout changes, Lakebase is skipped and the adapter keeps its project-scoped disk persistence.