ladda-js / ladda

JavaScript data fetching layer with caching
https://petercrona.gitbooks.io/ladda/content/
MIT License
112 stars 16 forks source link

Refactor/cache plugin #25

Closed petercrona closed 7 years ago

petercrona commented 7 years ago

Introduces a facade combining the query cache and entity store, giving one intention-revealing interface to both of them. This hides away how the caching is implemented and allows users to only depend on "cache" rather than both the entity store and query cache.

Significantly reduces the number of dependencies since both the entity store and the query cache are heavily used in the cache plugin.