Skip to content

Commit

Permalink
Expire cached Solana transactions (#7926)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyrombo authored Mar 25, 2024
1 parent 61d7368 commit b497af7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const cacheTransaction = async (
) => {
const redis = await getRedisConnection()
const key = `solana:transaction:${signature}`
await redis.set(key, transaction)
await redis.set(key, transaction, { EX: 60 })
}

export const getCachedDiscoveryNodeEndpoints = async () => {
Expand Down

0 comments on commit b497af7

Please sign in to comment.