cache-manager 3.5.0 → 3.6.0

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/History.md CHANGED
@@ -1,3 +1,6 @@
1
+ - 3.6.0 2021-11-12
2
+ - Added keyCount() method to memory store (#173). - @css-master
3
+
1
4
  - 3.5.0 2021-11-11
2
5
  - Added dump() and load() methods to memory store (#171). - @jeoy
3
6
 
@@ -186,6 +186,13 @@ var memoryStore = function(args) {
186
186
  }
187
187
  };
188
188
 
189
+ /**
190
+ * This method is not available in the caching modules.
191
+ */
192
+ self.keyCount = function() {
193
+ return lruCache.length;
194
+ };
195
+
189
196
  /**
190
197
  * This method is not available in the caching modules.
191
198
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cache-manager",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "description": "Cache module for Node.js",
5
5
  "main": "index.js",
6
6
  "files": [