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

Implement TTL cache #23

Open
renatoruk opened this issue Jul 14, 2020 · 4 comments
Open

Implement TTL cache #23

renatoruk opened this issue Jul 14, 2020 · 4 comments

Comments

@renatoruk
Copy link
Contributor

No description provided.

@krukru
Copy link

krukru commented Jul 14, 2020

Should this be solved at the backend/server layer?

@renatoruk
Copy link
Contributor Author

renatoruk commented Jul 14, 2020

Cache in general, yes. But, this feature enables the application to cache resources that are fetched very often so they don't even start a request to the backend.

E.g. multiple <LanguageSelect> may appear on the page and they all call API from aardvark internally. If the aardvark knows that this resource should be cached, and there are n <LanguageSelect>'s on the page, there should be only 1 request for that resource, e,g. api/languages 

@krukru
Copy link

krukru commented Jul 14, 2020

I see, great example. Thanks for the explanation

@JuraJuki
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants