cache.Scope
JavaScript does not include an enumeration type. The SuiteScript 2.x documentation uses the term enumeration (or enum) to describe a plain JavaScript object with a flat, map-like structure. In this object, each key points to a read-only string value.
Enum Description |
Holds the string values that describe the availability of the cache. Use this enum to set the value of the Cache.scope property and the |
Module |
|
Sibling Module Members |
|
Since |
2016.2 |
Values
Value |
Description |
---|---|
|
The cache is available only to the current script. This is the default value. |
|
The cache is available only to some scripts:
|
|
The cache is available to all server scripts in the NetSuite account. |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/cache Module Script Samples.
//Add additional code
...
var myCache = cache.getCache({
name: 'temporaryCache',
scope: cache.Scope.PROTECTED
});
...
//Add additional code