tick-cache 1.0.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/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "tick-cache",
3
+ "version": "1.0.0",
4
+ "description": "High-performance TTL cache with LRU eviction using a timer wheel algorithm",
5
+ "main": "./dist/index.cjs",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "type": "module",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "scripts": {
22
+ "build": "tsup",
23
+ "dev": "tsup --watch",
24
+ "test": "vitest",
25
+ "test:watch": "vitest --watch",
26
+ "test:cov": "vitest run --coverage",
27
+ "prepublishOnly": "npm run build && npm test",
28
+ "bench": "npm run build && NODE_OPTIONS=\"--expose-gc\" tsx bench/index.ts -o bench/outputs/bench-results.json",
29
+ "bench:smoke": "npm run build && NODE_OPTIONS=\"--expose-gc\" tsx bench/index.ts --ops 100000 --warmup 5000 -o bench/outputs/bench-smoke.json",
30
+ "bench:workload": "npm run build && NODE_OPTIONS=\"--expose-gc\" tsx bench/index.ts -w",
31
+ "bench:prof": "npm run build && node --expose-gc --cpu-prof --cpu-prof-dir=bench/outputs --import tsx/esm bench/index.ts -o bench/outputs/bench-prof.json",
32
+ "bench:report": "tsx bench/reporting/report-generator.ts bench/outputs/bench-results.json bench/outputs/bench-report.html",
33
+ "bench:full": "npm run bench && npm run bench:report"
34
+ },
35
+ "keywords": [
36
+ "cache",
37
+ "ttl",
38
+ "lru",
39
+ "timer-wheel",
40
+ "expiration",
41
+ "memory-cache",
42
+ "performance",
43
+ "typescript",
44
+ "eviction",
45
+ "in-memory"
46
+ ],
47
+ "author": "Martin",
48
+ "license": "MIT",
49
+ "repository": {
50
+ "type": "git",
51
+ "url": "https://github.com/m-thenot/tick-cache.git"
52
+ },
53
+ "bugs": {
54
+ "url": "https://github.com/m-thenot/tick-cache/issues"
55
+ },
56
+ "homepage": "https://github.com/m-thenot/tick-cache#readme",
57
+ "engines": {
58
+ "node": ">=16.0.0"
59
+ },
60
+ "devDependencies": {
61
+ "@types/node": "^25.0.3",
62
+ "commander": "^12.1.0",
63
+ "lru-cache": "^11.0.2",
64
+ "@isaacs/ttlcache": "^2.1.4",
65
+ "tsup": "^8.5.1",
66
+ "tsx": "^4.19.2",
67
+ "typescript": "^5.9.3",
68
+ "vitest": "^4.0.16"
69
+ }
70
+ }