simexis/cache

Cache for laravel 5

Maintainers

Package info

github.com/jooorooo/cache

pkg:composer/simexis/cache

Statistics

Installs: 42

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.1.3 2016-02-21 23:02 UTC

This package is auto-updated.

Last update: 2026-03-15 04:07:08 UTC


README

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}