Socket
Socket
Sign inDemoInstall

@digitalbazaar/lru-memoize

Package Overview
Dependencies
2
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.1.0

5

CHANGELOG.md
# @digitalbazaar/lru-memoize ChangeLog
## 2.1.0 - 2021-06-30
### Added
- Add dispose on settle feature.
## 2.0.0 - 2021-03-02

@@ -4,0 +9,0 @@

@@ -19,2 +19,5 @@ /*!

* retrieved from cache, thereby extending the expiration date of the entry.
* @param {boolean} [cacheOptions.disposeOnSettle=false] - When set to true
* entries will be removed from cache once they've settled. This is to only
* be used when one needs a promise queue.
*

@@ -25,2 +28,3 @@ * @returns {LruCache} The class.

constructor(cacheOptions) {
this.options = cacheOptions || {};
this.cache = new LRU(cacheOptions);

@@ -69,4 +73,8 @@ }

if(this.options.disposeOnSettle) {
this.cache.del(key);
}
return result;
}
}

2

package.json
{
"name": "@digitalbazaar/lru-memoize",
"version": "2.0.0",
"version": "2.1.0",
"description": "LRU Memoize",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc