-
Notifications
You must be signed in to change notification settings - Fork 470
PlatformCacheBuilderRecipes
albarivas edited this page Nov 23, 2021
·
14 revisions
demonstrates how to use the Cache.CacheBuilder Interface
The doLoad method is required by the CacheBuilder interface This method needs to return an Object - and that's the key to the Cache builder interface - You must have this method return a single Object that is either calculated by this method, or returned from the Cache by the key
Param | Description |
---|---|
key |
String used to help generate the Cache Key |
Type
Object
Description
Object
This object should be casted at the call location
Account[] accounts = (Account[]) Cache.Session.get(PlatformCacheBuilderRecipes.class, 'myAccounts')