cache/psr-6-doctrine-bridge
最新稳定版本:3.2.0
Composer 安装命令:
composer require cache/psr-6-doctrine-bridge
包简介
PSR-6 Doctrine bridge
关键字:
README 文档
README
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
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-06