Skip to main content

Hi Experts,     I am newbie to salesforce techstack. Going over onboarding trailheads. I see reference for Lightning Data Service Cache.   My question is LDS cache is a browser side local cache or a server side cache (kind of redis).     Do we have any architecture diagram to explain LWC api call going from browser to database and then coming back. Which all components are taking part.     Thanks  Sanjeev   

2 respuestas
  1. 5 feb 2025, 9:40

    Hi @Sanjeev Chauhan

     

    Hope you are doing well, 

     

    Lightning Data Service (LDS) cache is a browser-side cache, not a server-side cache like Redis. It stores recently accessed data locally in your browser's memory. When your LWC component needs data, LDS first checks this local cache - if found, it returns immediately. If not found, it makes a server call to fetch data from Salesforce's database, then stores it in the cache for future use. 

     

    I hope you find this answer helpful. 

     

    Regards,  

    Sunny Patwa

0/9000