wa72/doctrine-cache-extensions 问题修复 & 功能扩展

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

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

wa72/doctrine-cache-extensions

Composer 安装命令:

composer require wa72/doctrine-cache-extensions

包简介

Extensions for DoctrineCache

README 文档

README

Contains two classes that are add-ons to Doctrine\Common\Cache:

  • Wa72\DoctrineCacheExtensions\FileCache
  • Wa72\DoctrineCacheExtensions\TimestampableHashableCache

FileCache is a cache provider for Doctrine\Common\Cache that stores cached elements as files in a given cache directory. As of today, there is a native FileCache provider class in the Doctrine Cache package itself, but it didn't exist yet when I needed it some months ago, so I wrote this class. Now I'm still using my implementation because it has special support for the second class in this package, TimestampableHashableCache, because it is able to return the filemtime of the cache file.

TimestampableHashableCache is a class that implements Doctrine's Cache interface and provides some additional methods for getting the timestamp when the cache was saved and an md5 hash of the cached content. For doing the real work it needs another CacheProvider. This can be any of the Doctrine\Common\Cache\CacheProvider subclasses, such as ApcCache or the above mentioned FileCache.

Requirements

Installation

  • using [composer] (http://getcomposer.org): add "wa72/doctrine-cache-extensions": "dev-master" to the "require" section of your composer.json

  • using other PSR-0 compliant autoloader: clone this project to where your vendor libraries are and point your autoloader to look for the "\Wa72\DoctrineCacheExtensions" namespace in the "src" directory of this project

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-02-18