@zintrust/cache-redis 0.1.8 → 0.1.16
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 +36 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# @zintrust/cache-redis
|
|
2
|
+
|
|
3
|
+
Redis cache driver package for Zintrust.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Recommended (installs + wires registration):
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
zin add cache:redis
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or install directly:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm i @zintrust/cache-redis redis
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
Ensure the driver is registered at startup (before using `cache`):
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import '@zintrust/cache-redis/register';
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Then set your cache driver config (see docs for the full set of env vars):
|
|
28
|
+
|
|
29
|
+
```env
|
|
30
|
+
CACHE_DRIVER=redis
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Docs
|
|
34
|
+
|
|
35
|
+
- https://zintrust.com/cache
|
|
36
|
+
- https://zintrust.com/adapters
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zintrust/cache-redis",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"node": ">=20.0.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@zintrust/core": "^0.1.
|
|
25
|
+
"@zintrust/core": "^0.1.16"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|