承接 cache/psr-6-doctrine-bridge 相关项目开发

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

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

cache/psr-6-doctrine-bridge

最新稳定版本:3.2.0

Composer 安装命令:

composer require cache/psr-6-doctrine-bridge

包简介

PSR-6 Doctrine bridge

README 文档

README

Gitter Latest Stable Version codecov.io Total Downloads Monthly Downloads Software License

This library provides a PSR-6 compliant bridge between Doctrine and a Cache Pool. The bridge implements the Doctrine\Common\Cache\Cache interface. This is useful for projects that require an implementation of Doctrine\Common\Cache\Cache, but you still want to use a PSR-6 implementation.

Install

composer require cache/psr-6-doctrine-bridge

Usage

use Cache\Bridge\Doctrine\DoctrineCacheBridge;

// Assuming $pool is an instance of \Psr\Cache\CacheItemPoolInterface
$cacheProvider = new DoctrineCacheBridge($pool);

$cacheProvider->contains($key);
$cacheProvider->fetch($key);
$cacheProvider->save($key, $value, $ttl);
$cacheProvider->delete($key);

// Also, if you need it:
$cacheProvider->getPool(); // same as $pool

Contribute

Contributions are very welcome! Send a pull request to the main repository or report any issues you find on the issue tracker.

统计信息

  • 总下载量: 996.42k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 15
  • 点击次数: 1
  • 依赖项目数: 9
  • 推荐数: 1

GitHub 信息

  • Stars: 15
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-06