use of com.albedo.java.common.core.vo.PageModel in project albedo by somowhere.
the class RedisServiceImpl method getRedisInfo.
/**
* Redis详细信息
*/
@Override
public IPage<RedisInfo> getRedisInfo() {
Properties info = redisConnectionFactory.getConnection().info();
List<RedisInfo> infoList = new ArrayList<>();
RedisInfo redisInfo;
for (Map.Entry<Object, Object> entry : info.entrySet()) {
redisInfo = new RedisInfo();
redisInfo.setKey(StringUtil.toString(entry.getKey()));
redisInfo.setValue(StringUtil.toString(entry.getValue()));
infoList.add(redisInfo);
}
return new PageModel<>(infoList, infoList.size());
}
Aggregations