cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Remove item from Cache in HYBRIS

kvnreddy008
Member
0 Likes
1,717

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member624549
Participant
0 Likes

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