How to set the auxiliary disk cache programmatically using jcs

Deadly 提交于 2019-12-24 11:28:12

问题


I am obtaining my cache object like this

CacheAccess<Object, Object> cache = JCS.getInstance("queries");

I have put a config file in the classpath cache.ccf. For debugging reasons I want to set the aux disk cache path programmatically, but do not know how to obtain the interface I need. I know there exsists an attribute class where one may set this path, but I do not know how to get the instance of this class which refers to the cache I am using. Any ideas?

来源:https://stackoverflow.com/questions/31706419/how-to-set-the-auxiliary-disk-cache-programmatically-using-jcs

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!