Skip to content

prestamodule/InfinityCache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

InfinityCache

A Laravel package Eloquent cache. InfinityCache provides infinity and forever cache for queries results unitl model changed. If model has been created or deleted or updated, model queries caches will be flushed.

Requirements

This package works only with taggable cache storages and drivers such as memcached or Redis and other storages that extended from Illuminate\Cache\TaggedCache.

Installation

For install this package just run composer with this command:

composer require morilog/infinity-cache

Usage

For using InfinityCache, your eloquent model must be extends Morilog\InfinityCache\Model

example:

<?php
namespace App\Models;

use Morilog\InfinityCache\Model as InifinityCacheModel;

class Post extends InifnityCacheModel 
{
  ...
}

About

Infinity cache for Laravel Eloquent models and queries

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%