RedisClient client = RedisClient.create("redis://localhost:6379"); StatefulRedisConnection<String, String> connection = client.connect(); RedisCommands<String, String> commands = connection.sync(); commands.set("key", "value"); String value = commands.get("key");


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