3 Replies Latest reply on Mar 8, 2006 1:18 AM by Brian Stansberry

    LRUPolicy doesn't work, missing functionality

    vladg Newbie

      I need to set max number of elements in the region e.g. Region:/app/customer - 500, Region:/app/company - 100 and want to cache no more then 500 customers, when 501 is added the LRU customer should be deleted. as I can see there is no way to achieve this functionality using the current LRUPolicy because it counts nodes and not keys. Substituting node by the key would probably create performance problem and defeats the idea of the tree cache.

      Please help.
      -update LRUPolicy maybe by introducing new attribute maxKeysPerNode and optionally maxKeysTotal on the config level