Activity Forums Salesforce® Discussions What is the use of setStorable in Aura framework?

  • Nikita

    Member
    August 14, 2019 at 6:33 am

    Hi Saddam,

    A storable action is a server action whose response is stored in the client cache so that subsequent requests for the same server method with the same set of arguments can be accessed from that cache. Server action is an Apex method that you invoke remotely from your Lightning Component.

    To make an action storable, you simply call its setStorable() function.

  • Deepak

    Member
    August 14, 2019 at 7:54 am

    Storable Actions are a GREAT way to enhance the performance of your Lightning components and implementing them is incredibly easy, but there is one big gotcha to seeing them work with a stand-alone Lightning Application.

    Even though storable actions are automatically configured in Lightning Experience and Salesforce1, any Stand-alone Lightning apps that are used to host your components will NOT use caching by default.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos