Fetch cache for a particular user #571
Unanswered
Amritpal2001
asked this question in
Q&A
Replies: 1 comment 3 replies
-
You can use different cache object for these users. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a use case where I am caching user's queries that goes to OpenAI. Now, for example, 2 different users can ask the same question, so the answer will be provided from the cache. But my need is to separate the cache based on user IDs as I need to pass some other context with minor changes. Is there any way to pass some unique ID and every time there is a hit from the cache it should be from that particular unique ID? The cache of 2 users must not mix up even if they ask the same question.
Beta Was this translation helpful? Give feedback.
All reactions