@veloxts/cache 0.6.57 → 0.6.58
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/README.md +2 -23
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,29 +1,8 @@
|
|
|
1
1
|
# @veloxts/cache
|
|
2
2
|
|
|
3
|
-
> **Early Preview** - APIs may change
|
|
3
|
+
> **Early Preview (v0.6.x)** - APIs are stabilizing but may still change. Use with caution in production.
|
|
4
4
|
|
|
5
|
-
Multi-driver caching with tags, locks, and the remember pattern.
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm install @veloxts/cache
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Quick Start
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { cachePlugin } from '@veloxts/cache';
|
|
17
|
-
|
|
18
|
-
app.use(cachePlugin({ driver: 'memory' }));
|
|
19
|
-
|
|
20
|
-
// In your procedures
|
|
21
|
-
const user = await ctx.cache.remember('user:123', '1h', async () => {
|
|
22
|
-
return db.user.findUnique({ where: { id: '123' } });
|
|
23
|
-
});
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
See [GUIDE.md](./GUIDE.md) for detailed documentation.
|
|
5
|
+
Multi-driver caching for VeloxTS Framework - provides memory and Redis drivers with tags, locks, and the remember pattern. Learn more at [@veloxts/velox](https://www.npmjs.com/package/@veloxts/velox).
|
|
27
6
|
|
|
28
7
|
## License
|
|
29
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veloxts/cache",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.58",
|
|
4
4
|
"description": "Multi-driver caching layer for VeloxTS framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"fastify-plugin": "5.1.0",
|
|
32
32
|
"lru-cache": "11.1.0",
|
|
33
33
|
"superjson": "2.2.2",
|
|
34
|
-
"@veloxts/core": "0.6.
|
|
34
|
+
"@veloxts/core": "0.6.58"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"ioredis": ">=5.0.0"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"ioredis": "5.6.1",
|
|
48
48
|
"typescript": "5.9.3",
|
|
49
49
|
"vitest": "4.0.16",
|
|
50
|
-
"@veloxts/testing": "0.6.
|
|
50
|
+
"@veloxts/testing": "0.6.58"
|
|
51
51
|
},
|
|
52
52
|
"keywords": [
|
|
53
53
|
"velox",
|