缓存 / 前缀缓存
一个装饰器,使您的缓存支持前缀
1.2.0
2022-01-15 15:47 UTC
Requires
- php: >=7.4
- cache/hierarchical-cache: ^1.0
- psr/cache: ^1.0 || ^2.0
- psr/simple-cache: ^1.0
Requires (Dev)
- cache/integration-tests: ^0.17
- phpunit/phpunit: ^7.5.20 || ^9.5.10
README
这是一个 PSR-6 缓存的装饰器。它将允许您使用预定义的键为所有缓存项添加前缀。
它是 PHP Cache 组织的一部分。有关标签和层次结构支持等功能的信息,请阅读在 www.php-cache.com 上的共享文档。
安装
composer require cache/prefixed-cache
使用
$anyPSR6Pool = new RedisCachePool($client); $prefixedPool = new PrefixedCachePool($anyPSR6Pool, 'acme');