Skip to content

Commit

Permalink
Use 'adiff-service:' prefix in the redis key (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
willemarcel authored Apr 10, 2024
1 parent db6deae commit 8f83fd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/redis-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const setProcessedState = async (value) => {
.on('error', err => console.log('Redis Client Error', err))
.connect();

await client.set('state', value);
await client.set('adiff-service:state', value);
await client.disconnect();
};

Expand All @@ -15,7 +15,7 @@ const getLastProcessedState = async () => {
.on('error', err => console.log('Redis Client Error', err))
.connect();

const lastState = await client.get('state');
const lastState = await client.get('adiff-service:state');
await client.disconnect();
return Number(lastState);
};
Expand Down

0 comments on commit 8f83fd4

Please sign in to comment.