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
  • Field Details

    • CACHE_PREFIX

      public static final String CACHE_PREFIX
      The default cache prefix for all cache keys for templates
      See Also:
    • SECONDS_IN_DAY

      public static final double SECONDS_IN_DAY
      Useful constant for calculating cache directives
      See Also:
    • DEFAULT_FILE_STORE

      public static final String DEFAULT_FILE_STORE
      The default file store we leverage
      See Also:
    • cacheService

      protected final CacheService cacheService
    • defaultCache

      protected final ICacheProvider 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
      Specified by:
      _invoke in class Component
      Parameters:
      context - The context in which the Component is being invoked
      attributes - The attributes to the Component
      body - The body of the Component
      executionState - The execution state of the Component
      Returns:
      The result of the invocation