@travetto/cache
Advanced tools
Comparing version 4.1.0 to 4.1.2
{ | ||
"name": "@travetto/cache", | ||
"version": "4.1.0", | ||
"version": "4.1.2", | ||
"description": "Caching functionality with decorators for declarative use.", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"@travetto/di": "^4.1.0", | ||
"@travetto/model": "^4.1.0" | ||
"@travetto/model": "^4.1.2" | ||
}, | ||
@@ -32,0 +32,0 @@ "peerDependencies": { |
@@ -44,3 +44,3 @@ import { ExpiresAt, Index, Model, ModelExpirySupport, NotFoundError } from '@travetto/model'; | ||
async postConstruct(): Promise<void> { | ||
if (isStorageSupported(this.#modelService) && Env.dynamic) { | ||
if (isStorageSupported(this.#modelService) && (Env.dynamic || this.#modelService.config?.autoCreate)) { | ||
await this.#modelService.createModel?.(CacheRecord); | ||
@@ -47,0 +47,0 @@ } |
31246
Updated@travetto/model@^4.1.2