jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Medina <cerebrotecnolog...@gmail.com>
Subject Re: Guaranteed persistence
Date Tue, 03 Aug 2010 19:17:22 GMT
Look at :
http://jakarta.apache.org/jcs/RegionProperties.html
and
http://jakarta.apache.org/jcs/IndexedDiskCacheProperties.html

What are the properties of your disk cache ?


On Mon, Aug 2, 2010 at 4:51 AM, Tim Stibbs <stripybadger@gmail.com> wrote:
> Hi,
>
> I am looking into using JCS as a disk-based key-value store, and it seems to
> work fine. However if the jvm is terminated, the .key file may not get
> written to, and although the .data file has my data in, when I restart the
> application it cannot access anything in the cache (presumably due to the
> .key file being empty).
>
> So, is there anyway to force the cache to immediately persist to disk?
> Having MaxObjects=0 on the memory cache seems to help, but still doesn't
> cause the .key file to be written.
>
> I also though I might be able to use ICacheEventLogger to see when data has
> actually been written to the disk store, but the logging stuff doesn't seem
> to be in the released version, although it is in the documentation?
>
> Does anyone know if it is even possible to do what I am trying to do, or
> have any suggestions?
>
> Thanks.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Mime
View raw message