This is a simplified range creation on the default VPC network. In a production environment, you should verify what the range should be and which VPC network to allocate in.
Establish peering so that Memorystore can allocate the IP address in the reserved range in the VPC.
Trying ...
Connected to 10.111.98.4.
Escape character is '^]'.
stats
STAT pid 1
STAT uptime 1020
STAT time 1594348128
...
END
quit
Connection closed by foreign host.
@SpringBootApplication
@EnableCaching
class DemoApplication {
...
}
@Service
class OrderService {
private final OrderRepository orderRepository;
public OrderService(OrderRepository orderRepository) {
this.orderRepository = orderRepository;
}
@Cacheable("order")
public Order getOrder(Long id) {
orderRepository.findById(id);
}
}