Skip to content

Commit

Permalink
fix: set redis TTL
Browse files Browse the repository at this point in the history
  • Loading branch information
great-park committed Dec 19, 2022
1 parent 4ca8d33 commit e2fad10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/redis/redisfactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export async function redisFactory(categoryList): Promise<void> {
}

await redisCli.set(provider + categoryName, contents).then(() => {
redisCli.expire(provider + categoryName, 3600);
logger.info(`✅ category : "${provider + categoryName}" Add To Redis Cache`)
})
}
Expand Down

0 comments on commit e2fad10

Please sign in to comment.