1

Is it possible to cache into local org partition from a managed package? In other words can we do this Cache.Org.put('local.ABCPartition.XYZ', 'Test Object'); from the managed package, where in ABCPartition has been created in the org where this Managed package is installed.

  • Does your question relate to the comment "The cache put calls aren’t allowed in a partition that the invoking class doesn’t own." in the Org Class documentation? – Keith C May 14 '19 at 7:35
  • That is right @keith – Sandeep May 15 '19 at 8:26
  • Hey @KeithC, I don't know for sure but what I understood is that no managed package can use partitions from other managed package (namespace), but any code can use 'local' partitions. – Jeferson Chaves May 16 '19 at 8:38
  • I'm not sure on this, but my understanding is your packaged can create a parition in the local cache and use that, or you can bundle cache capacity in your package for a cost. Not sure about using existing local partitions though. – Matt Lacey Sep 16 '19 at 23:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.