CristalTeam / php-api-wrapper

:rainbow: Work with APIs like with Laravel Eloquent or Doctrine (no longer a dream)
MIT License
119 stars 32 forks source link

CACHE DATA FROM SERVER #23

Closed ElijahGM closed 3 years ago

ElijahGM commented 3 years ago

Hello thanks for the good plugin, is there a way to cache data from api and update them in background?

camillebaronnet commented 3 years ago

Hi ! Cristal\ApiWrapper\Api uses this HasCache.php trait to provide a very simple cache during execution. I recommande you to override these methods to implement your advenced custom strategy.