local-ch / lhc

🚀 Advanced HTTP Client for Ruby. Fueled with interceptors.
GNU General Public License v3.0
43 stars 1 forks source link

Enable cache when one of the options is in place #74

Open 10xSebastian opened 7 years ago

10xSebastian commented 7 years ago
 endpoint ':datastore/v2/feedbacks/:id', cache: true, cache_expires_in: 1.day

@eduardschaeli wrote: Why set "cache: true" when setting a cache expiration kinda implies that you're using a cache? Couldn't you get rid of the "cache: true" param?

Moved from https://github.com/local-ch/lhc-core-interceptors/issues/13