Skip to content

Commit

Permalink
stronger redis connection
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumewuip committed Sep 1, 2023
1 parent 92dec20 commit 84452fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rss-to-tana/store.js
Expand Up @@ -6,11 +6,13 @@ const REDIS_URL = `redis://${process.env.REDIS_HOST}`

const client = createClient({
url: REDIS_URL,
pingInterval: 1000 * 60 * 4,
});

client.on('error', error => Log.error('Redis Client Error', error.message));
client.on('reconnecting', () => Log.debug('Redis Client reconnecting...'));
client.on('ready', () => Log.info('Redis Client Ready!'));
client.on('connect', () => {});

const storeId = (id) => {
// we hash the id to have something cleaner than raw url,
Expand Down

0 comments on commit 84452fe

Please sign in to comment.