Skip to content

ognis1205/yacache-l5-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yet Another Laravel Caching Service

Yet Another Laravel Caching, a.k.a., YACache is a package to extend Laravel 5's base caching functionality. This yet another chaching service implementation enables full support of Eloquent ORM caching, i.e., you can cache Eloquent models without loss of relationship imformations.

Installation

First, install the package via composer, or autoloading it configuring your composer.json:

$ composer require sokawa/yacache

Second, if you wan to use msgpack instead of default PHP serializer, you must run the following script in the installed package directory to install the PECL msgpack package:

$ ./install.sh

Usage

First, add the yet another caching service provider and facade to your config/app.php file:

"Illuminate\YetAnother\Cache\CacheServiceProvider",
"Illuminate\YetAnother\Support\Facades\Cache"

It's important to note that this cachin service will automatically re-bind the Model class that Eloquent uses for many-to-many relationships. You should now be good to go with your models.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published