mura.cache

Class cacheSimple

lucee.Component
    extended by mura.cfobject
      extended by mura.cache.cacheAbstract
        extended by mura.cache.cacheSimple
Direct Known Subclasses:
cacheFactory

This cache store items in java soft references

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(boolean isSoft='true', numeric freeMemoryThreshold='0')
          Constructor.
    Method Summary
    any get(string key, [any context], [boolean isSoft='[runtime expression]'], [any timespan=''])
    any getJavaRuntime()
    any getPercentFreeMemory()
    boolean hasFreeMemoryAvailable()
    any set(string key, [any context], [boolean isSoft='[runtime expression]'], [any timespan=''])
     
    Methods inherited from class mura.cache.cacheAbstract
    getAll, getCollection, getHashKey, getJavaLoader, getParent, has, hasParent, isSoftReference, keyExists, purge, purgeAll, setCollection, setJavaLoader, setParent, size
     
    Methods inherited from class mura.cfobject
    commitTracePoint, convertTimezone, deleteMethod, getAsJSON, getAsStruct, getBean, getConfigBean, getCurrentUser, getEventManager, getFeed, getHTTPAttrs, getHTTPService, getJavaTimezone, getPlugin, getPluginManager, getQueryAttrs, getQueryService, getServiceFactory, getSession, getValue, hasCustomDatasource, initTracePoint, inject, injectMethod, invokeMethod, mixin, parseDateArg, removeValue, setValue, valueExists
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(boolean isSoft='true', numeric freeMemoryThreshold='0')

    Constructor

    Parameters:
    isSoft
    freeMemoryThreshold

    Method Detail

    get

    public any get(string key, [any context], [boolean isSoft='[runtime expression]'], [any timespan=''])

    Overrides:
    get in class cacheAbstract
    Parameters:
    key
    context
    isSoft
    timespan

    getJavaRuntime

    public any getJavaRuntime()


    getPercentFreeMemory

    public any getPercentFreeMemory()


    hasFreeMemoryAvailable

    public boolean hasFreeMemoryAvailable()


    set

    public any set(string key, [any context], [boolean isSoft='[runtime expression]'], [any timespan=''])

    Overrides:
    set in class cacheAbstract
    Parameters:
    key
    context
    isSoft
    timespan