@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.cjs CHANGED
@@ -540,7 +540,7 @@ ${opts.message || this.desc}`;
540
540
  * @return {this}
541
541
  */
542
542
  set(key, value, ttl = this.options.ttl) {
543
- if (this.options.expiryPolicy == "keep") delete this.store[key]._expired;
543
+ if (this.options.expiryPolicy == "keep") delete value._expired;
544
544
  this.store[key] = value;
545
545
  this.save();
546
546
  if (ttl) setTimeout(() => {