cachebox.system.cache.policies

Class LRU

lucee.Component
    extended by cachebox.system.cache.policies.AbstractEvictionPolicy
      extended by cachebox.system.cache.policies.LRU
All Implemented Interfaces:
IEvictionPolicy

Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com ---- This is the LRU or least recently used algorithm for cachebox. It basically discards the least recently used items first according to the last accessed date. This is also the default algorithm for CacheBox. For more information visit: http://en.wikipedia.org/wiki/Least_Recently_Used

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(any cacheProvider)
          This is the constructor.
    Method Summary
    void execute()
         Execute the policy.
     
    Methods inherited from class cachebox.system.cache.policies.AbstractEvictionPolicy
    getAssociatedCache, getCacheProvider, getLogger, getUtil, processEvictions, setCacheProvider, setLogger
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any cacheProvider)

    This is the constructor

    Parameters:
    cacheProvider - The associated cache provider of type: cachebox.system.cache.ICacheProvider" doc_generic="cachebox.system.cache.ICacheProvider

    Method Detail

    execute

    public void execute()

    Execute the policy

    Overrides:
    execute in class AbstractEvictionPolicy