@ztimson/utils 0.24.11 → 0.24.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -536,7 +536,7 @@ class Cache {
536
536
  * @return {this}
537
537
  */
538
538
  set(key, value, ttl = this.options.ttl) {
539
- if (this.options.expiryPolicy == "keep") delete this.store[key]._expired;
539
+ if (this.options.expiryPolicy == "keep") delete value._expired;
540
540
  this.store[key] = value;
541
541
  this.save();
542
542
  if (ttl) setTimeout(() => {