🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

@athenna/cache

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@athenna/cache - npm Package Compare versions

Comparing version
5.6.0
to
5.7.0
+1
-1
package.json
{
"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;