承接 qbnk/doctrine-sanefilesystemcache 相关项目开发

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

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

GitHub 信息

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

其他信息

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