2 Replies Latest reply on Jul 22, 2008 5:54 AM by manik

    Purpose of cache loader

    lords_diakonos

      I am evaluating Jboss cache and I am confused about exactly what the cacheloader is. It seems the only good cache loaders are jdbc ones as the file one is not recommended for production. The api refers to the cache loader as for secondary storage.

      What exactly is meant by secondary storage in this case?

      When would cache lookups goto db?

      Is there a good file store I can use? I was hoping to get the cache on disk.

        • 1. Re: Purpose of cache loader
          mschaffer

          We use the bdbje (berkeley db, java ed.) cacheloader here which goes to disk as files. It's not one file per cache entry though but rather a rolling set of database files.

          You have to be a bit careful about cleanup, but it might be something you can try out.

          • 2. Re: Purpose of cache loader
            manik

            Both BDBJE and JDBM cache loaders - both file-based - are recommended over the FileCacheLoader.

            All cache loaders will have state persisted when state is put or changed in the cache. This could be asynchronous to make cache calls quicker, with the risk associated with any async call.