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

Ability to preload the cache at start time #40

Open
ithinkicancode opened this issue Aug 26, 2021 · 0 comments
Open

Ability to preload the cache at start time #40

ithinkicancode opened this issue Aug 26, 2021 · 0 comments

Comments

@ithinkicancode
Copy link
Contributor

Motivation

Sometimes it's desired to pre-warm the cache with entries that are known to be frequently used, as an optimization strategy. For instance, an e-commerce web site might want to load the top 100 most popular items right from the start.

Considerations

  1. We'll probably need a separate lookup function to retrieve these entries and populate the cache.
  2. It's probably a good idea to stagger the provided TTL for each entry so that we can avoid the situation where these hotspot entries all expire at the same time and subsequent requests can trigger an avalanche of retrieval.
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

No branches or pull requests

1 participant