-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Setting maxsize=None on TTLCache still checks the size in __setitem__ #328
Comments
|
Hi yes you are right, it is not documented. I read the code for the decorator and just assumed it would work the same for the regular class. Will use |
Maybe I also should state explicitly that a number is required, or in the At least with the |
Both documentation changes are probably good improvements. In my case I have a single endpoint I want to limit to roughly 1 RPS so I will never hit the max size so that is why I did not want to set one (or set it infinitely high). Sorry for the noise and thank you for your hard work on this project :) |
@sedrik: Thanks for reporting (properly, using the template and reproducible code and all), even if it's "just" something that might be improved in the docs. These are the things really important to users, not some supa-dupa new high-speed implementation in Rust or whatever, so I don't consider this "noise" at all ;-) |
Describe the bug
Expected result
I would expect the call
c["test"] = 123
to succeedActual result
TypeError: '>' not supported between instances of 'int' and 'NoneType'
Reproduction steps
See bug description
The text was updated successfully, but these errors were encountered: