@travetto/model-redis 3.0.0-rc.8 → 3.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/README.md +5 -1
- package/package.json +5 -5
- package/src/config.ts +1 -1
- package/support/service.redis.ts +3 -3
package/README.md
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
**Install: @travetto/model-redis**
|
|
7
7
|
```bash
|
|
8
8
|
npm install @travetto/model-redis
|
|
9
|
+
|
|
10
|
+
# or
|
|
11
|
+
|
|
12
|
+
yarn add @travetto/model-redis
|
|
9
13
|
```
|
|
10
14
|
|
|
11
15
|
This module provides an [redis](https://redis.io)-based implementation for the [Data Modeling Support](https://github.com/travetto/travetto/tree/main/module/model#readme "Datastore abstraction for core operations."). This source allows the [Data Modeling Support](https://github.com/travetto/travetto/tree/main/module/model#readme "Datastore abstraction for core operations.") module to read, write and query against [redis](https://redis.io).
|
|
@@ -40,7 +44,7 @@ export class Init {
|
|
|
40
44
|
|
|
41
45
|
**Code: Structure of RedisModelConfig**
|
|
42
46
|
```typescript
|
|
43
|
-
import
|
|
47
|
+
import type redis from 'redis';
|
|
44
48
|
|
|
45
49
|
import { Config } from '@travetto/config';
|
|
46
50
|
import { Field } from '@travetto/schema';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-redis",
|
|
3
|
-
"version": "3.0.0
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Redis backing for the travetto model module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"directory": "module/model-redis"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@travetto/config": "^3.0.0
|
|
29
|
-
"@travetto/model": "^3.0.0
|
|
30
|
-
"redis": "^4.
|
|
28
|
+
"@travetto/config": "^3.0.0",
|
|
29
|
+
"@travetto/model": "^3.0.0",
|
|
30
|
+
"redis": "^4.6.4"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@travetto/command": "^3.0.0
|
|
33
|
+
"@travetto/command": "^3.0.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependenciesMeta": {
|
|
36
36
|
"@travetto/command": {
|
package/src/config.ts
CHANGED
package/support/service.redis.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Env } from '@travetto/base';
|
|
2
|
-
import type {
|
|
2
|
+
import type { CommandService } from '@travetto/command';
|
|
3
3
|
|
|
4
|
-
const version = Env.get('REDIS_VERSION', '
|
|
4
|
+
const version = Env.get('REDIS_VERSION', '7');
|
|
5
5
|
|
|
6
|
-
export const service:
|
|
6
|
+
export const service: CommandService = {
|
|
7
7
|
name: 'redis',
|
|
8
8
|
version,
|
|
9
9
|
port: 6379,
|