Prior to Winter ’19, to cache data returned from an Apex method, you had to call setStorable() in JavaScript code on every action that called the Apex method. Now you can mark the Apex method as storable (cacheable) and get rid of any setStorable() calls in JavaScript code.
"Prior to API version 44.0, to cache data returned from an Apex method, you had to call setStorable() in JavaScript code on every action that called the Apex method. For API version of 44.0 or higher, you must mark the Apex method as storable (cacheable) and you can get rid of any setStorable() calls in JavaScript code. The Apex annotation approach is better because it centralizes your caching notation for a method in the Apex class."
Option A
A
-In API version 44.0 and later, you can improve runtime performance by caching method results on the client by using the annotation @AuraEnabled(cacheable=true).
https://developer.salesforce.com/forums/?id=9062I000000R1hlQAC
Ans: A
To improve runtime performance, set @AuraEnabled(cacheable=true) to cache the method results on the client.
upvoted 5 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Rocky_sfdc
Highly Voted 3 years, 9 months agoNiuNiuG
Highly Voted 3 years, 9 months agoJeet89123
Most Recent 5 months, 2 weeks agoJokei
11 months, 2 weeks agoMetaLojiqTee
1 year, 3 months agosanto_aj
1 year, 6 months agoTing21
1 year, 8 months agosf2022
1 year, 11 months agochenxin
1 year, 11 months agolevian
2 years, 1 month agoCaiXiDan
2 years, 4 months agoamerbearat
3 years, 3 months ago