@vulkano/core 1.12.0 → 1.13.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.
@@ -319,7 +319,7 @@ module.exports = function loadServer() {
319
319
  }
320
320
 
321
321
  // ---------------
322
- // Permission Policy - File: app/config/express/permissionPolicy.js
322
+ // Permission Policy - File: app/config/express/permissionPolicy.js
323
323
  // ---------------
324
324
  const {
325
325
  enabled: ppEnabled,
@@ -347,6 +347,28 @@ module.exports = function loadServer() {
347
347
 
348
348
  }
349
349
 
350
+ // ---------------
351
+ // REDIS - File: app/config/redis.js
352
+ // ---------------
353
+ const {
354
+ enabled: redisEnabled
355
+ } = app.config.redis || {};
356
+
357
+ app.redisClient = null;
358
+
359
+ if (redisEnabled === true) {
360
+
361
+ const {
362
+ redis
363
+ } = app.config || {};
364
+
365
+ const rClient = socketRedis(redis);
366
+ rClient.on('error', (err) => console.log('Redis Client Error', err));
367
+
368
+ app.redisClient = await rClient.connect();
369
+
370
+ }
371
+
350
372
  // ---------------
351
373
  // VIEWS
352
374
  // ---------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vulkano/core",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "A MVC framework using Express 4",
5
5
  "license": "MIT",
6
6
  "author": "Vulkano Team",