wyrihaximus / react-cache-redis
为 react/cache 实现的 Redis 缓存
4.5.0
2024-01-09 15:49 UTC
Requires
- php: ^8.2
- clue/redis-react: ^2.7
- evenement/evenement: ^3.0.2
- react/cache: ^1.2
- react/promise: ^3.1
- thecodingmachine/safe: ^2
Requires (Dev)
- dev-master
- 4.5.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.1
- 4.0.0
- 3.0.1
- 3.0.0
- 2.0.0
- 1.0.0
- dev-dependabot/composer/composer/composer-2.7.7
- dev-renovate/major-phpunit
- dev-upgrade-to-php-81
- dev-add-php-8-support
- dev-dependabot/composer/react/cache-1.0.0
- dev-atomic-set-expire
- dev-cache-0.5
- dev-ci-travis-test-7.1-and-nightly
- dev-fix-check-if-has-key
This package is auto-updated.
Last update: 2024-09-10 22:06:33 UTC
README
使用 Redis 作为缓存,实现 react/cache 接口
安装
通过 Composer 安装,使用以下命令,它将自动检测最新版本并绑定 ^
。
composer require wyrihaximus/react-cache-redis
用法
<?php use Clue\React\Redis\Client; use Clue\React\Redis\Factory; use WyriHaximus\React\Cache\Redis; (new Factory())->createClient()->then(function (Client $client) { $cache = new Redis($client, 'react:cache:your:key:prefix:'); });
许可证
MIT 许可证 (MIT)
版权所有 (c) 2024 Cees-Jan Kiewiet
在此特此授予任何获得此软件及其相关文档副本(以下简称“软件”)的人免费使用软件的权利,不受任何限制,包括但不限于使用、复制、修改、合并、发布、分发、再许可和/或出售软件副本的权利,并允许向软件提供的人按以下条件这样做:
上述版权声明和本许可声明应包含在软件的所有副本或主要部分中。
软件按“原样”提供,不提供任何明示或暗示的保证,包括但不限于对适销性、特定用途适用性和非侵权的保证。在任何情况下,作者或版权所有者均不对任何索赔、损害或其他责任负责,无论该责任是基于合同、侵权或其他原因,无论该责任产生于、因之而起或与之相关,与软件或软件的使用或其他操作有关。