承接 desmart/laravel-cache-protract 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

desmart/laravel-cache-protract

最新稳定版本:1.0.0

Composer 安装命令:

composer require desmart/laravel-cache-protract

包简介

File based cache prolonger for Laravel

README 文档

README

Build Status

laravel-cache-protract

File based cache prolonger for Laravel.

Background

Laravel's file cache is rather simple. When it's expired the cache file is removed. Depending on implementation this cache gets regenerated during the request.

On heavy loaded applications this means that during the time of regeneration every request bumps into empty cache file and tries to regenerate it. This gap can lead to DoS - application will stop to respond.

This package is meant to lower the risk of that. Request hits expired cache, prolongs its expiration and in the meantime tries to regenerate the cache. For the time of regeneration other threads will get old contents.

Installation

composer require desmart/laravel-cache-protract:~1.0.0

In app/config/app.php add DeSmart\CacheProtract\ServiceProvider to providers.

In app/config/cache.php change driver to file-protract.

Optionally you can publish, and change config file.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-27