-
Notifications
You must be signed in to change notification settings - Fork 4k
Support ttl and max_entries kwargs #6449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ttl and max_entries kwargs #6449
Conversation
|
Hey @vdonato! it is very not obvious, but these changes could lead to a strange buggy behaviour: let's say we have two connections with different since this
key in self._function_caches global dict, but since they have different max_entries or ttl, ResourceCache corresponding to the first connection will be erased and replaced with second ResourceCache within the same key in self.function_caches.
I will be happy to have a call and help to debug this edge case with you. |
@kajarenc thanks! Just pinged you internally to schedule |
f44239f to
044e1ff
Compare
aab39eb to
197535a
Compare
631a509 to
ccf92e6
Compare
adf81a1 to
0ba7882
Compare
|
Update on this: this sounds like something we'll want to address eventually, but it doesn't seem feasible to do so in the timeframe that we have left before we want to merge this feature. Since |
* Support ttl and max_entries kwargs * Don't forget to pass kwargs to internal function * Fix test failing due to rebase
* Support ttl and max_entries kwargs * Don't forget to pass kwargs to internal function * Fix test failing due to rebase
* Support ttl and max_entries kwargs * Don't forget to pass kwargs to internal function * Fix test failing due to rebase
* Support ttl and max_entries kwargs * Don't forget to pass kwargs to internal function * Fix test failing due to rebase
* Support ttl and max_entries kwargs * Don't forget to pass kwargs to internal function * Fix test failing due to rebase
📚 Context
Not too much to describe here -- a mostly mechanical change that does what the title says.