on ‎2019 Nov 12 10:45 AM
Hi All,
I have a scenario like in OCC, Updating the OrderEntry status in one of the service and in using other service getting order details which is cached. So untill and unless cache expires the order returning the old order entry only.
Is there a way to update/remove the order/orderEntry from the cache ? CacheDirective is PUBLIC.
Please provide the details which will be great.
ThanksInAdvance.
Request clarification before answering.
I assume the caching happens with @Cacheable annotation - there is a @CacheEvict annotation you would use on updateFunctions see more here: https://www.baeldung.com/spring-boot-evict-cache
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.