Class CacheConfig
java.lang.Object
ortus.boxlang.runtime.config.segments.CacheConfig
A BoxLang cache configuration
This is a configuration segment for a cache engine
The default name is 'default'
The default provider is 'BoxCacheProvider'
The default properties are based on the DEFAULTS struct
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault Empty ConstructorCacheConfig(String name) Constructor by string nameCacheConfig(Key name) Constructor by name of a boxCacheProviderCacheConfig(Key name, Key provider, IStruct properties) Constructor by name, provider and propertiesCacheConfig(Key name, IStruct properties) Constructor by name and properties -
Method Summary
Modifier and TypeMethodDescriptionProcesses the configuration struct.processProperties(IStruct properties) This processes a struct of properties for a BoxLang cache enginetoStruct()Returns the configuration as a struct * Remember that this is what the context's use to build runtime/request configs, so don't use any references
-
Field Details
-
name
The name of the cache engine, default is ='default' -
provider
The default cache engine provider is BoxCacheProvider -
properties
The properties for the cache engine, based onDEFAULTS -
DEFAULTS
BoxLang Cache Provider Defaults
-
-
Constructor Details
-
CacheConfig
public CacheConfig()Default Empty Constructor -
CacheConfig
Constructor by name, provider and properties- Parameters:
name- The key name of the cache engineprovider- The name of the cache providerproperties- The properties of the cache engine
-
CacheConfig
Constructor by name and properties- Parameters:
name- The key name of the cache engineproperties- The properties of the cache engine
-
CacheConfig
Constructor by name of a boxCacheProvider- Parameters:
name- The key name of the cache engine
-
CacheConfig
Constructor by string name- Parameters:
name- The string name of the cache engine
-
-
Method Details
-
process
Processes the configuration struct. Each segment is processed individually from the initial configuration struct.- Parameters:
config- the configuration struct- Returns:
- the configuration
-
processProperties
This processes a struct of properties for a BoxLang cache engine- Parameters:
properties- The properties to process- Returns:
- the configuration
-
toStruct
Returns the configuration as a struct * Remember that this is what the context's use to build runtime/request configs, so don't use any references
-