定制 wa72/doctrine-cache-extensions 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固