+ Start a Discussion
SandrineSandrine 

Caching custom vs storable : using both

Hello,

I have used a custom cache mechanism.
I also want to use @AuraEnabled(cacheable=true)
Is it possible know the impact of them please ? or how wil they both cohibit
thank you for advise
Best Answer chosen by Sandrine
AbhishekAbhishek (Salesforce Developers) 
https://developer.salesforce.com/blogs/developer-relations/2017/03/lightning-components-best-practices-caching-data-storable-actions.html

Your query is answered above.


Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.

All Answers

AbhishekAbhishek (Salesforce Developers) 
https://developer.salesforce.com/blogs/developer-relations/2017/03/lightning-components-best-practices-caching-data-storable-actions.html

Your query is answered above.


Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.
This was selected as the best answer
ShirishaShirisha (Salesforce Developers) 
Hi Sandrine,

Greetings!

Both approaches can help in improving the performance of the component.In Storable,it will pull the details of cache and if they are stale then it will refresh the view.

If the Storage doesn't work then you can for custom cache in which you can have full control over the behavior of Cache.

Please refer this blog (https://www.jitendrazaa.com/blog/salesforce/15-ways-to-improve-performance-of-lightning-components-in-salesforce/) for more information.

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
madhav sharma 1madhav sharma 1
All You Need to Know About Airpods

First released in 2016, Apple's AirPods are widely regarded as one of the company's best products in recent years, and the AirPods offer great battery life, portability, simple charging, easy connectivity, and a range of Unmatched Bluetooth.
AirPods are so popular that Apple still has trouble keeping them in stock sometimes, and two years after launch, it's not uncommon to see a lot of AirPods on the street, in movies, on TV shows, and anywhere else you look .
If you're new to AirPods, considering buying a pair, or just wanting to get some new tips, this guide is for you.
What are AirPods?
The AirPods are Apple's completely wire-free headphones, which look a bit like Apple EarPods from older devices, but without the wires. AirPods have Apple-designed technology inside them, such as a special wireless chip called the W1 or H1 (depending on version), an accelerometer for gestures, dual optical sensors, dual-beam forming microphones for Siri and phone calls, and a second accelerometer for voice detection.
The AirPods come with the AirPods charging bubble milk tea airpod case (https://kpopsavage.com/product-category/accessories/airpod-cases/" style="color:#0563c1; text-decoration:underline), which is used for both charging and storage, so the AirPods don't get lost. The charging case is about the size of a dental floss container, so it can be easily stored in your pocket. A Lightning port at the bottom allows the AirPods and the case to be charged with the Lightning cables you already have on hand, and the wireless charging snorlax airpod case (https://kpopsavage.com/shop/accessories/airpod-cases/kpop-pokemon-snorlax-airpod-case-airpod-and-airpod-pro/" style="color:#0563c1; text-decoration:underline) allows you to charge with a Qi wireless charger.
What devices are compatible with AirPods?
AirPods work with all ‌iPhone‌, ‌iPad‌ and iPod touch models running iOS 10 or later. This includes ‌iPhone‌ 5 and newer, iPad mini 2 and newer, ‌iPad‌ fourth generation and newer, iPad Air models, all iPad Pro models, and the sixth generation eliPod touch‌.
AirPods work with all Apple Watch models running watchOS 3 or later, which includes the original Apple Watch and all later versions of Apple Watch.
AirPods also work with all Mac models running macOS Sierra or later, including the late 2009 or newer MacBook, the mid-2010 or newer MacBook Pro, the late 2010 or newer MacBook Air, Mac mini from mid-2010 or newer, latest -2009 or newer iMac, or Mac Pro from mid-2010 or newer.
With the ‌iPhone‌, Apple Watch, ‌iPad‌ and Mac models listed above, all AirPods features are available. You can pair AirPods with other non-Apple devices, you just won't be able to take advantage of all the bells and whistles.
If you have second-generation AirPods and are using them with an Apple device, you must have iOS 12.2, watchOS 5.2, or macOS 10.14.4 or later installed.