I am trying to implement caching in my php/laravel application. I am using the repository pattern along with laravel. Now laravel provides inbuilt cache support something like
$value = Cache::rememberForever('users', function() {
return DB::table('users')->get();
});
But i wanted to implement a general cache system so that even if i change my database this should work. Any help is appreciated.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire