<dependency> <groupId>io.lettuce</groupId> <artifactId>lettuce-core</artifactId> </dependency> RedisClient client = RedisClient.create("redis://localhost:6379"); StatefulRedisConnection<String, String> connection = client.connect(); RedisCommands<String, String> commands = connection.sync(); String value = commands.get("key"); connection.close(); client.shutdown();


上一篇:
下一篇:
切换中文