RedisURI uri = RedisURI.Builder.redis("XXXX", 16379) .withDatabase(6) .withPassword("XXXX") .build(); redisClient = RedisClient.create(uri); connect= redisClient.connect(); RedisCommands syncCommands = connect.sync(); Object count = syncCommands.get("count");
标签:java,syncCommands,RedisURI,代码,redis,redisClient,connect From: https://www.cnblogs.com/qq376324789/p/17866734.html