1 Reply Latest reply on May 31, 2007 8:56 AM by manik

    JBoss Tree Cache Eviction Plicy Configuration

    dsualeh

      Hi ,
      I am using the LRU Eviction Policy for my JBoss Tree Cache running REPL_ASYNC mode.
      My desired result is that the when the cache is filled up with 20 modes, it should remove the old nodes in least recently used fashion to accomodate new ones

      I would like to know what is the exact significance of the "Time to Live Seconds " parameter?

      The doc say is the idle time before a node is swept away and 0 denotes no limit.
      Can above offer more detail on this ?

      Thanks in advance,
      Danish





        • 1. Re: JBoss Tree Cache Eviction Plicy Configuration
          manik

          Eviction in regions can be configured to be triggered when a time or size threshold is reached. If you use maxNodes, then filling the region to more than maxNodes would trigger eviction events. If you use timeToLive, then when objects reach a certain age eviction events are triggered. If you use both, whichever is reached first will trigger the eviction event.