You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using useResponseCache to store responses in Redis. My question is that how to set the TTL of the cache with the key "operations:${responseId}" which are made along with response caches. I have set TTL of responses to 5 min but that of "operations:${responseId}" is still infinite. What setting should I add? As the number of cache grows up, the number of "operations:${responseId}" also increases and it is taking pretty large amount of the DB.
As I checked the source code, I see that the key's name could be change from "operations:" but can not find any TTL related code.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using
useResponseCache
to store responses in Redis. My question is that how to set the TTL of the cache with the key "operations:${responseId}" which are made along with response caches. I have set TTL of responses to 5 min but that of "operations:${responseId}" is still infinite. What setting should I add? As the number of cache grows up, the number of "operations:${responseId}" also increases and it is taking pretty large amount of the DB.As I checked the source code, I see that the key's name could be change from "operations:" but can not find any TTL related code.
envelop/packages/plugins/response-cache-redis/src/redis-cache.ts
Lines 119 to 120 in a978d73
Beta Was this translation helpful? Give feedback.
All reactions