mentie 0.3.9 → 0.3.10
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/modules/cache.js +2 -2
- package/package.json +1 -1
package/modules/cache.js
CHANGED
|
@@ -64,7 +64,7 @@ cache.dump = () => {
|
|
|
64
64
|
cache.stats = () => {
|
|
65
65
|
|
|
66
66
|
// Get the number of keys in the cache
|
|
67
|
-
const keys = Object.keys( _cache )
|
|
67
|
+
const keys = Object.keys( _cache )
|
|
68
68
|
|
|
69
69
|
// Get the size in bytes of the cache
|
|
70
70
|
const size_bytes = keys.reduce( ( acc, key ) => acc + JSON.stringify( _cache[key] ).length, 0 )
|
|
@@ -75,7 +75,7 @@ cache.stats = () => {
|
|
|
75
75
|
|
|
76
76
|
// Return the stats
|
|
77
77
|
return {
|
|
78
|
-
keys,
|
|
78
|
+
keys: keys.length,
|
|
79
79
|
size_bytes,
|
|
80
80
|
size_mib,
|
|
81
81
|
size_gib
|