定制 solution9th/laravel-file-cache-gc 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

solution9th/laravel-file-cache-gc

最新稳定版本:v0.0.2

Composer 安装命令:

composer require solution9th/laravel-file-cache-gc

包简介

Laravel file cache garbage collection.

README 文档

README

In some cases, file cache driver is the more suitable choice for our project, but laravel do not clean up the old files unless you get it, and the expired cache files may fill up the disk.

This package create an artisan command cache:file-gc do the garbage collection work that help you clean up the expired cache files.

Installation

composer require solution9th/laravel-file-cache-gc

Usage

  • Run the command manually, and you can with option -d to output the deleted files.
php artisan cache:file-gc
  • As a schedule write in app/Console/Kernel.php.
$schedule->command('cache:file-gc')->dailyAt('02:00');

License

MIT.

统计信息

  • 总下载量: 3.65k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-27