v0.3.6
Latest$ npm install @axiljs/runtime@0.3.6 @axiljs/stores@0.3.6
Shared state in one call
useStores()installs the stores behindtIdempotent,tCache,tLockandtRateLimitin one call. Any object with the matching methods works, so Redis or your own backend plugs in the same way. DocscreateSqlStores(fromConnection(db))builds every SQL store with one table prefix, plusensureSchema()andclose(). Uselock: 'advisory'for PostgreSQL advisory locks. DocsSqlBudgetStorekeeps AI budgets fromwithBudgetin the database, so token, cost and request limits hold across servers. Docs
Templates
saas-apiandhigh-scale-apiopen aDATABASE_URLconnection, install the SQL stores, callwireAll(), expose the Studio Intent view in development only and close everything on shutdown. Docs
Upgrade
- Running more than one instance? The new guide explains which state is per process by default and how to share it. Docs