文章目录
1 |
|
同时实现 RedisConnectionStateListener 保证在onRedisConnected,onRedisDisconnected,onRedisExceptionCaught下运行时的调用注意下列触发事件需要在RedisClient 下注册进去,保证后续的调用成功
1 | public class CustomRedisConnectionStateListener implements RedisConnectionStateListener { |