Class Cache
java.lang.Object
ortus.boxlang.runtime.components.Component
ortus.boxlang.runtime.components.cache.Cache
@BoxComponent(description="Manage cached data with get, put, and delete operations",
allowsBody=true)
public class Cache
extends Component
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of all possible `type` attribute values.Nested classes/interfaces inherited from class ortus.boxlang.runtime.components.Component
Component.BodyResult, Component.ComponentBody -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default cache prefix for all cache keys for templatesprotected final CacheServicestatic final StringThe default file store we leverageprotected final ICacheProviderstatic final doubleUseful constant for calculating cache directivesFields inherited from class ortus.boxlang.runtime.components.Component
componentService, declaredAttributes, DEFAULT_RETURN, functionService, ignoreEnableOutputOnly, interceptorService, name, runtime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_invoke(IBoxContext context, IStruct attributes, Component.ComponentBody body, IStruct executionState) Component which provides caching functionality, including content, individual entries, and HTTP headersMethods inherited from class ortus.boxlang.runtime.components.Component
announce, getDeclaredAttributes, getName, invoke, isIgnoreEnableOutputOnly, processBody, processBody, setIgnoreEnableOutputOnly, setName, validateAttributes
-
Field Details
-
CACHE_PREFIX
The default cache prefix for all cache keys for templates- See Also:
-
SECONDS_IN_DAY
public static final double SECONDS_IN_DAYUseful constant for calculating cache directives- See Also:
-
DEFAULT_FILE_STORE
The default file store we leverage- See Also:
-
cacheService
-
defaultCache
-
-
Constructor Details
-
Cache
public Cache()Constructor
-
-
Method Details
-
_invoke
public Component.BodyResult _invoke(IBoxContext context, IStruct attributes, Component.ComponentBody body, IStruct executionState) Component which provides caching functionality, including content, individual entries, and HTTP headers
-