simexis / cache
laravel 5 缓存
1.1.3
2016-02-21 23:02 UTC
Requires
- php: >=5.5.9
- illuminate/support: >=5.2.0
README
用 Laravel 5 替换默认缓存
在 "config/app.php" 中替换
- Illuminate\Cache\CacheServiceProvider::class,
为
- Simexis\Cache\CacheServiceProvider::class,
用法
//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}