I have two microservices pods in Openshift, I want to clean cache both microservices. I have a endpoint that clear-evict cache, the request only enter in one pod. How to avoid restart the pods for clear-cache? I use 2.1.10 springboot and I have a cron configurated every two hours but I want to clean cache in HTTP Request.
I use @Cacheable from org.springframework.cache.annotation in the request and org.springframework.cache.CacheManager.clear for evict/clean the cache.