@quantos/micro-request
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -29,2 +29,8 @@ "use strict"; | ||
}); | ||
redisClient.on('error', (error) => { | ||
console.error('[@quantos/micro-request][Redis client] ' + error); | ||
}); | ||
process.on('SIGTERM', () => { | ||
redisClient.disconnect(); | ||
}); | ||
} | ||
@@ -31,0 +37,0 @@ class RedisCache { |
{ | ||
"name": "@quantos/micro-request", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Quantos http client with cache, retry and fallback mechanism", | ||
@@ -5,0 +5,0 @@ "author": "fabriziotognetto <info@quantos.it>", |
@@ -21,2 +21,8 @@ import { createClient, RedisClientType } from 'redis'; | ||
}); | ||
redisClient.on('error', (error: any) => { | ||
console.error('[@quantos/micro-request][Redis client] ' + error); | ||
}); | ||
process.on('SIGTERM', () => { | ||
redisClient.disconnect(); | ||
}); | ||
} | ||
@@ -23,0 +29,0 @@ |
Sorry, the diff of this file is not supported yet
37887
808