Another key aspect of manipulating data relates to the Cache.get() method’s loader parameter.
You use this parameter to reference a loader function that is user-defined.
This function should provide some logic for retrieving a value that is not in the cache.
Whenever Cache.get() attempts to retrieve a value that is not already in the cache, the loader function is called.
Additionally, whenever the loader function retrieves a value, NetSuite automatically puts that value into the cache.
This approach to populating a cache is considered more efficient than an approach that relies on the Cache.put() method.