Skip to content

Commit

Permalink
Update redis.util.ts
Browse files Browse the repository at this point in the history
when update keep ttl
  • Loading branch information
milon27 authored Mar 16, 2024
1 parent e0ddd03 commit 738635b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/redis.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const RedisUtil = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const old = await RedisUtil.getData<any>(key)
const updatedValue = { ...old, ...newValue }
pipeline.set(key, MyJSON.stringify(updatedValue))
pipeline.set(key, MyJSON.stringify(updatedValue) ,"KEEPTTL")
}

// Execute the pipeline
Expand Down

0 comments on commit 738635b

Please sign in to comment.