tenantcloud/laravel-better-cache
最新稳定版本:v2.0.0-alpha.1
Composer 安装命令:
composer require tenantcloud/laravel-better-cache
包简介
Improvements for Laravel's cache
README 文档
README
Fail safe
Laravel's implementation of cache doesn't allow failures - if your Redis dies, your app dies too.
New fail_safe driver aims to solve this by catching and logging all exceptions and instead
returning null/false as if the value was simply not found in cache:
// config/cache.php [ 'fail_safe' => [ 'delegate' => [ 'driver' => 'redis', 'connection' => 'cache', 'lock_connection' => 'default', ] ] ] // code Cache::forever('key', 'value'); // redis died here Cache::get('key'); // returns null and logs the exception
统计信息
- 总下载量: 25.97k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-31