@athenna/cache
Advanced tools
+1
-1
| { | ||
| "name": "@athenna/cache", | ||
| "version": "5.6.0", | ||
| "version": "5.7.0", | ||
| "description": "The cache handler for Athenna Framework.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -29,8 +29,8 @@ /** | ||
| const config = Config.get(`cache.stores.${store}`); | ||
| this.ttl = options?.ttl || config.ttl; | ||
| this.enabled = options?.enabled || config.enabled || true; | ||
| this.maxItems = options?.maxItems || config.maxItems || 1000; | ||
| this.store = store; | ||
| this.ttl = options?.ttl ?? config.ttl; | ||
| this.enabled = options?.enabled ?? config.enabled ?? true; | ||
| this.maxItems = options?.maxItems ?? config.maxItems ?? 1000; | ||
| this.maxEntrySize = options?.maxEntrySize || config.maxEntrySize; | ||
| this.prefix = this.sanitizePrefix(options?.prefix || config?.prefix); | ||
| this.store = store; | ||
| this.prefix = this.sanitizePrefix(options?.prefix ?? config?.prefix); | ||
| if (client) { | ||
@@ -37,0 +37,0 @@ this.client = client; |