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-10-10 02:26:55 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