ash-jc-allen / laravel-exchange-rates

A Laravel wrapper package for interacting with the exchangeratesapi.io API.
MIT License
449 stars 49 forks source link

Do not cache #35

Closed ash-jc-allen closed 4 years ago

ash-jc-allen commented 4 years ago

At the moment, we force all exchange rates that are fetched to be stored in the cache before we return them. This could be an optional feature.

This feature could be added as either an optional parameter for each of the methods that it affects, or it could be added as a new chained method (e.g. - ...->doNotCache()->...).

ash-jc-allen commented 4 years ago

38

ash-jc-allen commented 4 years ago

This feature was added in release v3.0.0.

olimortimer commented 1 year ago

How long does the cache last for, please?

ash-jc-allen commented 1 year ago

Hey @olimortimer! The exchange rates are cached forever without an expiry date/time 🙂

olimortimer commented 1 year ago

Thank you!

On Mon, 16 Jan 2023, 11:10 Ash Allen, @.***> wrote:

Hey @olimortimer https://github.com/olimortimer! The exchange rates are cached forever without an expiry date/time 🙂

— Reply to this email directly, view it on GitHub https://github.com/ash-jc-allen/laravel-exchange-rates/issues/35#issuecomment-1383882014, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJCRY4XM433UEQOP5U4XSLWSUUB7ANCNFSM4N24QKKA . You are receiving this because you were mentioned.Message ID: @.***>