reactphp-x / redis-cache
v1.0.0
2024-08-10 00:49 UTC
Requires
- clue/redis-react: ^2.7
- react/cache: ^1.2
This package is auto-updated.
Last update: 2024-11-10 02:46:32 UTC
README
install
composer require reactphp-x/redis-cache -vvv
Usage
use Clue\React\Redis\RedisClient; use ReactphpX\RedisCache\RedisCache; $redis = new RedisClient('redis://:h%40llo@localhost'); // $redis = new RedisClient('redis://ignored:h%40llo@localhost'); // $redis = new RedisClient('redis://localhost?password=h%40llo'); // $redis = new RedisClient('redis://localhost/2'); // $redis = new RedisClient('redis://localhost?db=2'); $redisCache = new RedisCache($redis);
see CacheInterface
License
MIT