Example usage for org.apache.commons.jcs.engine CompositeCacheAttributes setUseDisk

List of usage examples for org.apache.commons.jcs.engine CompositeCacheAttributes setUseDisk

Introduction

In this page you can find the example usage for org.apache.commons.jcs.engine CompositeCacheAttributes setUseDisk.

Prototype

@Override
public void setUseDisk(boolean useDisk) 

Source Link

Document

Sets the useDisk attribute of the CompositeCacheAttributes object

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 w w w  .  j  av  a 2 s  .  c o m*/
    attributes.setUseDisk(false);
    attributes.setUseRemote(false);
    attributes.setUseLateral(false);
    cache_ = JCS.getInstance("test", attributes);
}