1 Reply Latest reply on Dec 21, 2006 8:41 PM by manik

    cache loader which saves only on shutdown

    hontvari

      Can I configure a cache loader so that it doesn't save cached objects every time there is a put or remove, but only during shutdown?

      Such a configuration would be used in a cluster containing two processes on the same machine. It is acceptable if the content of the distibuted cache is lost occassinally, but restarting both processes nearly at the same time shouldn't empty the cache.

        • 1. Re: cache loader which saves only on shutdown
          manik

           

          ... but restarting both processes nearly at the same time shouldn't empty the cache.


          This is precisely why you'd use a cache loader.


          Can I configure a cache loader so that it doesn't save cached objects every time there is a put or remove, but only during shutdown?


          Nothing of the sort at the moment; if you feel like writing one (a delegating cache loader which also implements a cache listener, and then delegates to a configured underlying cache loader), feel free to contribute it back. :-)