关于 JCS 的信息
这与我之前的问题https://stackoverflow.com/questions/8428911/jcs-disk有关-cache-data-retrieval
即使在应用程序关闭后,JCS 也会从磁盘读取。即,我有一个写入磁盘的 JCS。事情是一个程序执行缓存正在写入磁盘,另一个从磁盘读取。我一次运行写入程序,几分钟后运行读取程序。但是当运行读取程序时,即使写入程序它也会出现空数据已成功写入磁盘。缓存系统是否像这样工作。即使缓存将对象写入磁盘,它是否只是使用磁盘进行临时存储。应用程序关闭或重新启动后,磁盘上的信息是否会变得无效。 我想知道关于磁盘部分的JCS是否像存储系统一样工作。
This is conjunction with my previous question https://stackoverflow.com/questions/8428911/jcs-disk-cache-data-retrieval
Does JCS read from disk even after the application is shutdown.i.e I have a JCS that writes to disk.The thing is one program does the caching that is writing to disk and another one reads from the disk.I run the writing program at one time and after a few minutes the read program is run.But when the read program is run,it comes up with null data even though the write program has successfully written to disk.Do caching systems work like this.Does it just use the disk for temporary storage,even though the cache writes the objects to disk.Does the information on the disk become invalid after application shutdown or restart.
I want to know whether JCS with respect to the disk part works like a storage system.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编辑您的cache.ccf 文件,添加一个选项
jcs.region.YOUR_CACHE_NAME.cacheattributes.DiskUsagePatternName=更新
阅读此内容。特别是关于 DiskUsagePatternName。
这个简单的示例可以正常工作。
Edit your cache.ccf file, add an option
jcs.region.YOUR_CACHE_NAME.cacheattributes.DiskUsagePatternName=UPDATE
Read this. Especially about DiskUsagePatternName.
This simple example works normally.