Question 2
You have generated a new extension based on the ywebservices template. You have enabled server-side caching.
How would you annotate your method to take advantage of caching?
Add a @CacheControl annotation with the value attribute equal to your cache name and a custom key defined using SpEL.
Add a @Caching annotation with the value attribute equal to your cache name.
Add a @CacheControl annotation with the value attribute equal to your cache name.
Add a @Cacheable annotation with the value attribute equal to your cache name and a custom key defined using SpEL.
Correct answer: D
Explanation:
Reference: https://answers.sap.com/questions/13183809/how-can-i-annotate-the-method-to-take-advantage-of.html
Reference:
https://answers.sap.com/questions/13183809/how-can-i-annotate-the-method-to-take-advantage-of.html