@mondart/nestjs-common-module 1.2.0 → 1.2.1

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 ADDED
@@ -0,0 +1,8 @@
1
+
2
+ ### Make release
3
+
4
+ #### after push to target version branch run the following command to create a release:
5
+
6
+ ```bash
7
+ $ gh release create vx.x.x --target branch -t vx.x.x --notes ""
8
+ ```
@@ -4,7 +4,10 @@ export interface CachingModuleOptions {
4
4
  ttl: number;
5
5
  host: string;
6
6
  port: number;
7
+ username?: string;
8
+ db?: number;
7
9
  password: string;
10
+ tls?: boolean;
8
11
  }
9
12
  export interface CachingModuleFactory {
10
13
  createModuleOptions: () => Promise<CachingModuleOptions> | CachingModuleOptions;
@@ -24,8 +24,16 @@ let CachingModule = CachingModule_1 = class CachingModule {
24
24
  store: await (0, cache_manager_ioredis_yet_1.redisStore)({
25
25
  host: cachingOptions.host,
26
26
  port: cachingOptions.port,
27
+ username: cachingOptions.username,
27
28
  password: cachingOptions.password,
29
+ db: cachingOptions.db,
28
30
  ttl: cachingOptions.ttl,
31
+ tls: cachingOptions.tls
32
+ ? {
33
+ host: cachingOptions.host,
34
+ port: cachingOptions.port,
35
+ }
36
+ : undefined,
29
37
  }),
30
38
  }),
31
39
  }),
@@ -53,8 +61,16 @@ let CachingModule = CachingModule_1 = class CachingModule {
53
61
  store: await (0, cache_manager_ioredis_yet_1.redisStore)({
54
62
  host: cachingOptions.host,
55
63
  port: cachingOptions.port,
64
+ username: cachingOptions.username,
56
65
  password: cachingOptions.password,
66
+ db: cachingOptions.db,
57
67
  ttl: cachingOptions.ttl,
68
+ tls: cachingOptions.tls
69
+ ? {
70
+ host: cachingOptions.host,
71
+ port: cachingOptions.port,
72
+ }
73
+ : undefined,
58
74
  }),
59
75
  max: 10000,
60
76
  }),