Skip to content

Support custom native RedisCluster client #906

Closed
@mocxi

Description

@mocxi

What type of feature would you like?

New backend support

The feature request

The current set function new RedisConfig())->setRedisClient($redisClient) only accept Redis object
I'd like to request support RedisCluster so I can set custom native redis cluster client for it

Code sample (optional)

$obj_cluster = new RedisCluster(NULL, Array('host:7000', 'host:7001', 'host:7003'));
$cacheInstance = CacheManager::getInstance('Redis', (new RedisConfig())->setRedisClient($obj_cluster));

References (optional)

https://github.com/phpredis/phpredis/blob/develop/cluster.md

Do you have anything more you want to share? (optional)

I'm using phpfastcache v7

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions