firehed/null-psr16
Composer 安装命令:
composer require firehed/null-psr16
包简介
Always-offline PSR-16 cache implemention, for fallback and testing
README 文档
README
This is a PSR-16 implementation that always fails.
The motivation for this to exist is for fallback handling in cascading cache drivers. Rather than the application using a cache failing entirely because it can't connect to the cache, it can fall back to a non-throwing implementation like this.
Also useful for tests where you want to ensure correct non-throwing failure handling and don't want to write a mock driver.
Installation and Usage
Install: composer require firehed/null-psr16
Usage:
$cache = new \Firehed\Cache\NullPsr16(); // Use like any other PSR-16 implementation
统计信息
- 总下载量: 1.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-06-02