5 Replies Latest reply on Feb 1, 2005 10:58 AM by tcherel

    startService and evicition

    pksoft

      Hi friends, one question:

      is there any eviction on treeCache startService????

      Thanks.

        • 1. Re: startService and evicition
          tcherel


          If the question is "is cached data removed when stopService/startService are called", the answer is no, the cached data is not removed.

          I did experience and issue after a cache "restart", where the LRU policy was not functionning properly (node that were supposed to be evicted where not).
          I did not get a chance to see if the fix of http://jira.jboss.com/jira/browse/JBCACHE-38 took care of the issue or not.

          Thomas

          • 2. Re: startService and evicition
            pksoft

            when you said the cached data is not removed you mean that is not removed from disk (using cacheLoader), from memory or both.
            Because I need to release all the cached data just from memory, so I am calling to evict method. The reason is that I am trying to implement a refresh and I need the memroy completly empty.

            Thanks tcherel.

            • 3. Re: startService and evicition
              tcherel

              It is not removed from the memory.
              You probably need to do something like that:

              1) stopService

              2) empty the cache (you can probly use the regular operation to empty the cache, I suspect that since the cache is stopped, there will be no replciation going on).

              3) startService.

              The other option can also be to create a brand new cache.

              Thomas

              • 4. Re: startService and evicition
                pksoft

                What do you mean with regular operations to empty the cache???
                I am working in Local mode.

                Thanks Thomas.

                • 5. Re: startService and evicition
                  tcherel

                  remove methods.