tricache 0.1.0 → 0.3.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/README.md +248 -57
- package/dist/index.cjs +709 -87
- package/dist/index.d.cts +253 -8
- package/dist/index.d.ts +253 -8
- package/dist/index.js +709 -87
- package/package.json +15 -14
- package/src/cache-service.ts +436 -54
- package/src/disk-tier.ts +18 -2
- package/src/encryption.ts +69 -13
- package/src/index.ts +2 -0
- package/src/smart-memory-cache.ts +283 -23
- package/src/types.ts +75 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tricache",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Three-tier Node.js cache: L1 smart RAM (adaptive LFU/LRU) → L1.5 NVMe disk spill → L2 Redis/Valkey. Includes AES-256-GCM at-rest encryption, WASM Bloom filter, Stale-While-Revalidate, and thundering-herd prevention.",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Three-tier Node.js cache: L1 smart RAM (adaptive LFU/LRU + Count-Min Sketch) → L1.5 NVMe disk spill → L2 Redis/Valkey. Includes AES-256-GCM at-rest encryption, WASM Bloom filter, Stale-While-Revalidate, and thundering-herd prevention.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cache",
|
|
7
7
|
"redis",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"lru",
|
|
10
10
|
"lfu",
|
|
11
11
|
"bloom-filter",
|
|
12
|
+
"count-min-sketch",
|
|
12
13
|
"swr",
|
|
13
14
|
"stale-while-revalidate",
|
|
14
15
|
"msgpack",
|
|
@@ -17,7 +18,6 @@
|
|
|
17
18
|
"nodejs"
|
|
18
19
|
],
|
|
19
20
|
"license": "MIT",
|
|
20
|
-
"packageManager": "pnpm@11.0.9",
|
|
21
21
|
"type": "module",
|
|
22
22
|
"main": "./dist/index.js",
|
|
23
23
|
"module": "./dist/index.js",
|
|
@@ -35,17 +35,9 @@
|
|
|
35
35
|
"README.md",
|
|
36
36
|
"LICENSE"
|
|
37
37
|
],
|
|
38
|
-
"scripts": {
|
|
39
|
-
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
|
|
40
|
-
"dev": "tsup src/index.ts --format esm,cjs --dts --watch",
|
|
41
|
-
"typecheck": "tsc --noEmit",
|
|
42
|
-
"test": "vitest run",
|
|
43
|
-
"test:watch": "vitest",
|
|
44
|
-
"bench": "node --import tsx/esm bench/benchmark.ts"
|
|
45
|
-
},
|
|
46
38
|
"dependencies": {
|
|
47
39
|
"ioredis": "^5.3.2",
|
|
48
|
-
"msgpackr": "^
|
|
40
|
+
"msgpackr": "^2.0.1"
|
|
49
41
|
},
|
|
50
42
|
"devDependencies": {
|
|
51
43
|
"@types/node": "^24.0.0",
|
|
@@ -57,8 +49,17 @@
|
|
|
57
49
|
"engines": {
|
|
58
50
|
"node": ">=22.13.0"
|
|
59
51
|
},
|
|
52
|
+
"homepage": "https://github.com/Kareem411/TriCache#readme",
|
|
60
53
|
"repository": {
|
|
61
54
|
"type": "git",
|
|
62
|
-
"url": "git+https://github.com/Kareem411/
|
|
55
|
+
"url": "git+https://github.com/Kareem411/TriCache.git"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
|
|
59
|
+
"dev": "tsup src/index.ts --format esm,cjs --dts --watch",
|
|
60
|
+
"typecheck": "tsc --noEmit",
|
|
61
|
+
"test": "vitest run",
|
|
62
|
+
"test:watch": "vitest",
|
|
63
|
+
"bench": "node --import tsx/esm bench/benchmark.ts"
|
|
63
64
|
}
|
|
64
|
-
}
|
|
65
|
+
}
|