useResponseCache (TTL) #2158
Unanswered
tylerjbainbridge
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hi, thank you for reaching out! Which version are you using ? We used to have a bug leading to infinite TTL in some cases but it should be fixed now. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi! Here are my versions. My set up is Apollo Server & Envelop, and I'm using redis with the response cache. Things are ending up in Redis as intended, but everything has an infinite TTL for some reason. "@envelop/core": "^5.0.0", useResponseCache({
cache: graphqlCache,
includeExtensionMetadata: true,
// Default TTL 10 seconds.
ttl: 30000,
scopePerSchemaCoordinate: {
...
},
ttlPerType: {
...
},
ttlPerSchemaCoordinate: {
...
},
}), |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm using
useResponseCache
for a project and have a top level default TTL set to 30000, but I also havescopePerSchemaCoordinate
,ttlPerType
, andttlPerSchemaCoordinate
set for specific instances.It seems like all of the keys being added to redis have no TTL set (infinite) which I can't seem to track down.
Any idea why this may be happening?
Tyler
Beta Was this translation helpful? Give feedback.
All reactions