Cache get return undefined #1725
Unanswered
dondragon2
asked this question in
Q&A
Replies: 0 comments
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.
-
I am using the cache manager to cache an object across processes.
await this.cache.set(objectId, { gameName: 'Test'});
Then later I try the get the object from the cache but it is undefined
const game = await this.cache.get(objectId);
This is being done from separate methods in an
@Agenda
I am not sure what would be causing it to be undefined. I see the object in my mongodb and the key is correct
Beta Was this translation helpful? Give feedback.
All reactions