lru-cache-for-clusters-as-promised
Advanced tools
Comparing version 1.0.0 to 1.0.1
10
index.js
@@ -0,1 +1,9 @@ | ||
/** | ||
* Provide a cluster-safe lru-cache with Promises | ||
* | ||
* @module lru-cache-for-clusters-as-promised | ||
* @exports LRUCacheForClustersAsPromised | ||
*/ | ||
/* eslint comma-dangle: [2, "always"] */ | ||
const cluster = require('cluster'); | ||
@@ -102,7 +110,5 @@ const uuid = require('uuid'); | ||
return Promise.resolve(lru[func]); | ||
break; | ||
default: | ||
// just call the function on the lru-cache | ||
return Promise.resolve(lru[func](...funcArgs)); | ||
break; | ||
} | ||
@@ -109,0 +115,0 @@ } |
{ | ||
"name": "lru-cache-for-clusters-as-promised", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "LRU Cache that is safe for clusters", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29058
13
662