Skip to content

Commit d9714e0

Browse files
committed
revert cacheable
Signed-off-by: wind57 <[email protected]>
1 parent 484fb92 commit d9714e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-cloud-kubernetes-discovery/src/main/java/org/springframework/cloud/kubernetes/discovery/KubernetesReactiveDiscoveryClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package org.springframework.cloud.kubernetes.discovery;
1818

19+
import org.springframework.cache.annotation.Cacheable;
1920
import reactor.core.publisher.Flux;
2021

2122
import org.springframework.cloud.client.ServiceInstance;
@@ -46,13 +47,15 @@ public String description() {
4647
}
4748

4849
@Override
50+
@Cacheable("serviceinstances")
4951
public Flux<ServiceInstance> getInstances(String serviceId) {
5052
return webClient.get()
5153
.uri("/apps/" + serviceId)
5254
.exchangeToFlux(clientResponse -> clientResponse.bodyToFlux(DefaultKubernetesServiceInstance.class));
5355
}
5456

5557
@Override
58+
@Cacheable("services")
5659
public Flux<String> getServices() {
5760
return webClient.get()
5861
.uri("/apps")

0 commit comments

Comments
 (0)