reactphp-framework/redis-cache

v1.0.0 2024-03-12 08:51 UTC

This package is not auto-updated.

Last update: 2024-04-24 07:36:46 UTC


README

install

composer require reactphp-framework/redis-cache -vvv

Usage

use Clue\React\Redis\RedisClient;
use Reactphp\Framework\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