petty-cache 3.5.0 → 3.7.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/CHANGELOG.md +8 -0
- package/LICENSE +21 -201
- package/README.md +58 -15
- package/eslint.config.js +1 -15
- package/index.js +475 -245
- package/package.json +32 -34
package/package.json
CHANGED
|
@@ -1,36 +1,34 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
},
|
|
35
|
-
"version": "3.5.0"
|
|
2
|
+
"dependencies": {
|
|
3
|
+
"async": "~3.2.6",
|
|
4
|
+
"lock": "~1.1.0",
|
|
5
|
+
"memory-cache": "~0.2.0",
|
|
6
|
+
"redis": "~3.1.0"
|
|
7
|
+
},
|
|
8
|
+
"description": "A cache module for node.js that uses a two-level cache (in-memory cache for recently accessed data plus Redis for distributed caching) with some extra features to avoid cache stampedes and thundering herds.",
|
|
9
|
+
"devDependencies": {
|
|
10
|
+
"@eslint/js": "*",
|
|
11
|
+
"globals": "*"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/stores-com/petty-cache",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"cache",
|
|
16
|
+
"lock",
|
|
17
|
+
"mutex",
|
|
18
|
+
"redis",
|
|
19
|
+
"semaphore"
|
|
20
|
+
],
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"main": "index.js",
|
|
23
|
+
"name": "petty-cache",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/stores-com/petty-cache.git"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"coveralls": "node --test --test-force-exit --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info && coveralls < lcov.info",
|
|
30
|
+
"test": "node --test --test-force-exit --test-reporter=spec",
|
|
31
|
+
"test:only": "node --test --test-force-exit --test-only --test-reporter=spec"
|
|
32
|
+
},
|
|
33
|
+
"version": "3.7.0"
|
|
36
34
|
}
|