redux-axios-middleware icon indicating copy to clipboard operation
redux-axios-middleware copied to clipboard

[feature] caching w/ age param

Open crobinson42 opened this issue 8 years ago • 3 comments

What do you guys think about adding a caching option for requests? We could implement an option w/ the cache to bypass cache if last request is older than age or something along those lines... thoughts?

crobinson42 avatar Feb 25 '17 01:02 crobinson42

If this is outside the scope of the library - what about creating another project that can be included separately and used as a sort of plugin middleware to the req/res lifecycle and configurable to meet the needs of caching?

crobinson42 avatar Aug 02 '17 14:08 crobinson42

I think this is a bit outside the scope of this project but wanted to get others input on it.

I do like the idea of it but there are so many implementations of caches. Would we only have our own in memory cache or allow for pluggable caches implementations (think memcached, ignite ...)

@svrcekmichal you think this is something we would want in this library?

nmaves avatar Aug 02 '17 14:08 nmaves

Something to consider - If the approach to create a separate project that's a configurable plugin is something we see useful, we'll still need to change some minor things in this project's source code to include the plugin into the lifecycle of the redux dispatch state.

crobinson42 avatar Aug 02 '17 14:08 crobinson42