itlab-internal-services 2.13.4 → 2.13.5
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.
|
@@ -83,7 +83,7 @@ let CacheService = CacheService_1 = class CacheService {
|
|
|
83
83
|
const { token: password, refreshAfterTimestamp } = accessToken;
|
|
84
84
|
this.logger.log(`New token received. Refresh at: ${new Date(refreshAfterTimestamp).toISOString()}`);
|
|
85
85
|
// Initialize Redis store using Keyv and Redis
|
|
86
|
-
const redisStore = (0, redis_1.createKeyv)({ username: user, password, socket: { host, port, tls: true, timeout: 5000 } }, { namespace: this.namespace });
|
|
86
|
+
const redisStore = (0, redis_1.createKeyv)({ username: user, password, socket: { host, port, tls: true, timeout: 5000 }, pingInterval: 60000 }, { namespace: this.namespace });
|
|
87
87
|
// Check Redis server availability
|
|
88
88
|
yield redisStore.get('ping');
|
|
89
89
|
this.logger.log('Redis is available. Using Redis store for caching.');
|