Modules

filter

 

Objects/Functions

module (N/cache)

SuiteScript 2.0

cache.Cache

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=cache.Cache for more information.

N/cache Module
cache.Cache
Object Description: A segment of memory that can be used to temporarily store data (on a short term basis) needed by one script, by all scripts in a bundle, or by all scripts in the NetSuite account. This object is returned by cache.getCache(options).
Supported Script Types: Server-side scripts For additional information, see SuiteScript 2.0 Script Types.
Module: N/cache Module
Methods and Properties: Cache Object Members
Since: 2016.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=cache.Cache

Example:

// Code Example 1
//Add additional code
//...
//myCache in the following statement will be a cache.Cache object as returned from cache.getCache
var myCache = cache.getCache({
name: 'temporaryCache',
scope: cache.Scope.PRIVATE
});
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4642656915.html