Skip to content
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

Add "simple" TLRUCache example #278

Closed
tkem opened this issue Aug 2, 2023 · 0 comments
Closed

Add "simple" TLRUCache example #278

tkem opened this issue Aug 2, 2023 · 0 comments
Assignees
Labels

Comments

@tkem
Copy link
Owner

tkem commented Aug 2, 2023

The TLRUCache docs currently contain only an example for supplying a custom ttu function using datetime and a custom timer argument.
For clarity, an example using the default timer=time.monotonic and a ttu function returning a numeric value in seconds should be also added before that, to avoid confusion regarding the types involved in cache expiration. Maybe something like this should also be added to the TTLCache docs.
Also unit tests using alternative "time" types should be provided.

@tkem tkem added the docs label Aug 2, 2023
@tkem tkem self-assigned this Aug 2, 2023
tkem added a commit that referenced this issue Aug 18, 2024
@tkem tkem closed this as completed in 237ad80 Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant