Lettuce 단일 서버, 클러스터 서버, 풀링 사용 방법
들어가며
단일(standalone) 서버 사용하기
RedisClient redisClient = RedisClient.create("redis://password@localhost:6379/0");
StatefulRedisConnection<String, String> connection = redisClient.connect();
RedisCommands<String, String> syncCommands = connection.sync();
syncCommands.set("key", "Hello, Redis!");
connection.close();
redisClient.shutdown();클러스터 서버 사용하기
풀링 사용하기
Last updated