Checking for list of keys #271
Closed
RedfoxSoftware
started this conversation in
General
Replies: 1 comment
-
The looks to be similar to #57 so you can ignore |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a database query that is looking up the value for a set of IDs. I do not want to cache the entire list of IDs being looked up because that list passed in could change. However what would be useful is for each item passed in the list to be cached individually. I could then lookup each item and for those not cached, do a combined lookup from the database for all those values in one query. Finally the method should return the value, cached initially or not, for all the IDs passed in.
What is the best way to achieve this. Is it just to do something like:
Beta Was this translation helpful? Give feedback.
All reactions