I remember we talked about setter methods, but I can't recall if calling a setter method on a Model class actually invalidates the cache. It feels like it could, but I'm uncertain.
I'm not entirely sure, but I feel like calling the modelService.save() method might also invalidate item data. It sounds familiar from the practice questions we did.
I think receiving an invalidation event for the item via cluster messaging is definitely one of the correct answers. It seems to align with what we discussed in class.
I've got a few ideas on this one. I think calling the modelService.create() method and passing a Model class would invalidate the cache, since that would be creating a new item. And calling a setter method on a Model class would also likely invalidate the cache, since that would be modifying the item data. But I'm not 100% sure about the modelService.save() method.
Okay, let me see. I'm pretty sure that receiving an invalidation event would cause the cache to be invalidated, since that would indicate that the item data has changed. But I'm not sure about the other options - I'll need to think through them carefully.
Hmm, this seems like a tricky one. I'm not totally sure about the specifics of the SAP Commerce Cloud entity cache, but I know that caching can be a complex topic. I'll need to think carefully about the different ways that item data could be modified.
I think the key here is to focus on what can cause the cache to be invalidated. The question mentions "item data" so I'll need to think about the different ways that item data can be updated or changed in the system.
upvoted 0 times
...
Log in to Pass4Success
Sign in:
Report Comment
Is the comment made by USERNAME spam or abusive?
Commenting
In order to participate in the comments you need to be logged-in.
You can sign-up or
login
Cherrie
1 month agoSelma
1 month agoMelita
2 months agoMarcelle
2 months agoBerry
2 months agoSolange
2 months agoVirgilio
2 months agoAnabel
3 months agoMarion
3 months agoDetra
3 months agoJacquelyne
3 months agoHelaine
3 months ago