Navigation Menu

Skip to content

jooorooo/cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel 5 replace default cache

In "config/app.php" replace

  • Illuminate\Cache\CacheServiceProvider::class,

with

  • Simexis\Cache\CacheServiceProvider::class,

Usage

//set cache
\Cache::set('category.list', $categories);

//get cache
$categories = \Cache::get('category.list');

//delete cache
\Cache::forget('category.list');
//or 
\Cache::forget('category.*'); // delete all cache where key is category.{somename}

About

Laravel 5 cache

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages