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 caching to api data #43

Open
maartenvn opened this issue Jul 27, 2020 · 0 comments
Open

Add caching to api data #43

maartenvn opened this issue Jul 27, 2020 · 0 comments
Labels
todo Something on the todo list type:enhancement Improve an existing feature

Comments

@maartenvn
Copy link
Collaborator

Right now a lot of components have to pass data causing long pass through streams of certain information.
Introducing a caching layer would allow these components to do a request by themselves.
If the data has already been fetched, it would not send a request, but rather return the cached result.

The cache layer should have the following characteristics:

  • Cache is session specific.
    Reloading the page will not serve the same cache, but rather build a new one. This is important since the data present is rather subjective to change.

  • Cache should be updated automatically when updating/deleting data
    Eg: when a project is deleted using DELETE /projects/{id} it should also be deleted from GET /projects or GET /projects/{id}

  • Cache should work completely transparent to the components

@maartenvn maartenvn added todo Something on the todo list type:enhancement Improve an existing feature labels Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
todo Something on the todo list type:enhancement Improve an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant