Eloquent Query Cache
Github Repo
3.x
3.x
  • ⚡Introduction
  • 🎉Support
  • Getting Started
    • 🚀Installation
    • 🙌Showcase
  • Caching
    • ⚡Query Caching
    • 👥Relationships Caching
    • 📑Cache Tags
    • 🛑Cache Invalidation
      • 🌍Global Cache Invalidation
      • 🍸Automatic Invalidation
      • 🤔Many-to-Many Automatic Cache Invalidation
  • Advanced
    • ✨Implement Caching
      • 🔑Generating your own key
      • 🎇Implementing cache for other functions than get()
Powered by GitBook
On this page
  • Installing the package
  • Preparing the models

Was this helpful?

Edit on GitHub
  1. Getting Started

Installation

Installing the package

Hop into your console and install the package via Composer:

composer require rennokki/laravel-eloquent-query-cache

Preparing the models

Each model you want to cache on should use the Rennokki\QueryCache\Traits\QueryCacheable trait.

use Rennokki\QueryCache\Traits\QueryCacheable;

class Podcast extends Model
{
    use QueryCacheable;
}
PreviousSupportNextShowcase

Last updated 3 years ago

Was this helpful?

🚀