예제 #1
0
 @PreDestroy
 public void destroy() {
   redisServer.stop();
 }
예제 #2
0
 @Bean
 public JedisConnectionFactory connectionFactory() throws IOException {
   redisServer = new RedisServer(Protocol.DEFAULT_PORT);
   redisServer.start();
   return new JedisConnectionFactory();
 }