4 Replies Latest reply on Jul 12, 2005 9:09 PM by Ben Wang

    How to Expire Objects in JBoss Cache with Time Interval

    Ramesh R Newbie

      Hi ,

      I want to expire an Object stored in JBoss cache without calling explicitly the cache.remove method.

      Is there any way we can set the timeline in JBoss cache on a particular object. Say Im storing an object in the JBoss cache and I need it to be removed from the cache after 2 hours.

      I looked in to the cache.put() menthod and we are not setting the expiry deadline there.

      Thanks in advance.

      Ramesh