Example usage for org.apache.commons.jcs JCS setConfigProperties

List of usage examples for org.apache.commons.jcs JCS setConfigProperties

Introduction

In this page you can find the example usage for org.apache.commons.jcs JCS setConfigProperties.

Prototype

public static void setConfigProperties(Properties configProps) 

Source Link

Document

Set the properties that the cache manager will be initialized with.

Usage

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);
}