Example usage for org.apache.commons.cache Cache clear

List of usage examples for org.apache.commons.cache Cache clear

Introduction

In this page you can find the example usage for org.apache.commons.cache Cache clear.

Prototype

public void clear();

Source Link

Document

Remove all values previously #store stored .

Usage

From source file:com.adito.policyframework.PrincipalCache.java

protected static void closeCache(Cache cache) {
    try {/* w  w  w  . ja va 2 s.  c  o  m*/
        cache.clear();
        cache.unregisterStorageListeners();
    } catch (Exception e) {
        logger.error("Failed to close cache", e);
    }
}