List of usage examples for org.apache.commons.jcs JCS setConfigProperties
public static void setConfigProperties(Properties configProps)
From source file:org.mkosem.impl.JCSCache.java
public JCSCache(int capacity, int concurrencyLevel) throws CacheException { JCS.setConfigProperties(new Properties()); CompositeCacheAttributes attributes = new CompositeCacheAttributes(); attributes.setMaxObjects(capacity);/*from www .jav a2 s . c o m*/ attributes.setUseDisk(false); attributes.setUseRemote(false); attributes.setUseLateral(false); cache_ = JCS.getInstance("test", attributes); }