Skip to content

Commit

Permalink
Increase message cache TTL to 46 days
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi-signal committed Oct 2, 2024
1 parent 0eb7db8 commit 80cd5d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/src/main/resources/lua/insert_item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ local messageId = redis.call("HINCRBY", queueMetadataKey, "counter", 1)
redis.call("ZADD", queueKey, "NX", messageId, message)

redis.call("HSET", queueMetadataKey, guid, messageId)
redis.call("EXPIRE", queueKey, 2678400) -- 31 days
redis.call("EXPIRE", queueMetadataKey, 2678400) -- 31 days
redis.call("EXPIRE", queueKey, 3974400) -- 46 days
redis.call("EXPIRE", queueMetadataKey, 3974400) -- 46 days

redis.call("ZADD", queueTotalIndexKey, "NX", currentTime, queueKey)
return messageId

0 comments on commit 80cd5d9

Please sign in to comment.