javajcs

JCS Disk Cache Issue


I am using JCS for caching purposes and I am experiencing an issue where the data is not written to a disk,i.e no error is coming,but when I look at the data files,they are all 0k in size.Anybody know what is causing this error,I am using the properties file provided in the JCS web site.


Solution

  • Do you know its an error? Perhaps it only writes to disk when the cache is over some limit. i.e. it only writes when it has to.

    Using Madhu's solution: When jcs.default.cacheattributes.MaxObjects=0 the file size will always be 0. Remove this and you can see data in the files.