2 Replies Latest reply on Jul 22, 2008 12:38 PM by cacheuser

    removing data from cache and/or persistent store

    cacheuser

      I am using JbossCache 2.1.0. We have a need to remove data from the cache and/or the persistent store after a certain number days because of legal reasons, I saw that there are ways to write custom Eviction policy by doing the following


      "In order to implement an eviction policy, the following interfaces must be implemented:

      org.jboss.cache.eviction.EvictionPolicy
      org.jboss.cache.eviction.EvictionAlgorithm
      org.jboss.cache.eviction.EvictionQueue
      org.jboss.cache.config.EvictionPolicyConfig

      ...."

      I was planning to write a CustomLRUPolicy and override the evict method to somehow call remove instead but I dont have access to any remove method.Any idea how I can implement this ?