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:" is still infinite. What setting should I add?
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:" is still infinite. What setting should I add?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.
https://github.com/n1ru4l/envelop/blob/a978d73490a780a55ccde41f6c9ad67612c39486/packages/plugins/response-cache-redis/src/redis-cache.ts#L119-L120
Edit
I just noticed that the cache keys "operation" are not generated for some queries. I haven't figured out which query makes the cache.
Beta Was this translation helpful? Give feedback.
All reactions