How to use caching in SPFx using PnP Caching

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • #SharePoint #SharePointOnline #SPFx #M365PnP #PnP #PnPCaching
    This video explains how you can leverage the caching mechanism easily using PnP Caching in the SharePoint Framework web part. A complete guide on how to use the caching, setting the properties globally, or based on the call. Demo to explain different concepts in caching.
    Blog - spknowledge.co...
    PnP Caching - pnp.github.io/...
    Github code repo - github.com/sud...
    Like and comment if you find this video useful or you had learned something new. Thanks for your support.
    Happy Sharing...

Komentáře • 6

  • @Gamers-tm5of
    @Gamers-tm5of Před 2 lety +1

    Good one

  • @kamaleshk1268
    @kamaleshk1268 Před 2 lety +1

    Hi sudharsan, only limited items would store in local? Like 5k items. Is that possible for more than 5/10k items to be stored?

    • @sudharsankgoogle
      @sudharsankgoogle  Před 2 lety

      Hi Kamalesh, though it supports 5K items, it is not recommended to store a huge amount of items in the local cache which will increase the load in the browser and it will hang the browser most of the time. If you want to store huge items then you have to use the IndexDB storage not the local storage.
      Use the local cache for minimal number of items that are not modified often.

    • @kamaleshk1268
      @kamaleshk1268 Před 2 lety

      @@sudharsankgoogle okay sudharsan. IndexDB, did you have blog for it? thanks for the quick response.

    • @sudharsankgoogle
      @sudharsankgoogle  Před 2 lety +1

      @@kamaleshk1268 No but soon I ll post a blog and also video on using Index DB

    • @kamaleshk1268
      @kamaleshk1268 Před 2 lety

      @@sudharsankgoogle Thanks