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
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-13