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

Added LRU TTL Cache Implementation #1391

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aakashkhanna
Copy link

@aakashkhanna aakashkhanna commented Sep 14, 2023

This pull request adds support for TTLCache to zeep. TTLCache is a Least Recently Used (LRU) cache implementation with per-item time-to-live (TTL) value. This means that it will clear the entries after they expire, as compared to In Memory Cache which just marks the entries as expired but still holds them in memory.

Benefits of using TTLCache:

  • TTLCache clears the entries after the items expire as compared to In Memory Cache which just marks the entries as expired but still holds them in memory.
  • TTLCache lets you specify max size and a per item TTL.

This pull request also adds a new example to the documentation showing how to use TTLCache with zeep.

@aakashkhanna aakashkhanna changed the title Added TTL Cache Implementation Added LRU TTL Cache Implementation Sep 14, 2023
@aakashkhanna aakashkhanna marked this pull request as draft September 14, 2023 23:37
@aakashkhanna aakashkhanna marked this pull request as ready for review September 20, 2023 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant