定制 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
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固