qbnk/doctrine-sanefilesystemcache 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

qbnk/doctrine-sanefilesystemcache

最新稳定版本:v0.2

Composer 安装命令:

composer require qbnk/doctrine-sanefilesystemcache

包简介

A custom file system cache provider for Doctrine/Cache that allows custom directory spread and provides sane defaults.

README 文档

README

As the default FilesystemCache and PhpFileCache in Doctrine creates an insane amount of folders when storing your data, it eats up a lot of inodes. It also never deletes any file regardless if it is expired. This library provides a drop-in replacement which provides a sane default (2 folders deep) and supports setting your depth. It will also delete no longer needed files.

$cache = new \QBNK\Doctrine\Common\Cache\PhpFileCache(DIRECTORY);
$cache->setDirectorySpread(3);	// If not set, defaults to 2.
$cache->save(CACHE_KEY, CACHE_DATA);

Installation

Add the custom packages repositories to your composer.json if you do not already have it.

{
    "repositories": [
        {
            "type": "composer",
            "url": "http://packages.kaigan.se"
        }
    ]
}

Then add this library to your composer.json.

{
    "require": {
        "qbnk/doctrine-sanefilesystemcache": "dev-master"
    }
}

Lastly run composer update qbnk/doctrine-sanefilesystemcache to install it.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-12-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固