Skip to content

redis-plus-plus

hiredis的wrapper,写的非常好。

Connection

class Connection

If the connection is broken, Redis reconnects to Redis server automatically.

如何实现的自动重连?

Connection Failure

Exception

See errors.h for details

Redis Sentinel

NOTE: 通过sentinel可以获取master、slave的地址,然后可以指定Redis连接到它们。

类图

`class Redis` has a `ConnectionPool _pool`