Key TTL Cache with Name rather then URL ( Non Urgent ) #1731
CannonLock
started this conversation in
General
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.
Uh oh!
There was an error while loading. Please reload this page.
-
TTL Cache is keyed with server.url and the API endpoints are keyed with server.name.
This discrepancy hurts us because I want to be able to query a specific server via its name as per the existing name key'd apis. But because the cache is keyed with the url I have to do a O(n) look up rather then a O(1).
I can see this being a issue for two reasons:
Beta Was this translation helpful? Give feedback.
All reactions