Example usage for org.apache.commons.cache CachedObjectInfo getKey

List of usage examples for org.apache.commons.cache CachedObjectInfo getKey

Introduction

In this page you can find the example usage for org.apache.commons.cache CachedObjectInfo getKey.

Prototype

public Serializable getKey();

Source Link

Usage

From source file:com.adito.replacementproxy.ContentStash.java

public synchronized void clear() {
    Iterator it = _hash.entrySet().iterator();
    while (it.hasNext()) {
        try {//from   ww  w  .j  av a 2s  . co m
            Map.Entry en = (Map.Entry) it.next();
            CachedObjectInfo obj = (CachedObjectInfo) en.getValue();
            ((File) (obj.getKey())).delete();
        } catch (Exception e) {
            // ignored
        }
    }
    _hash.clear();
    _curBytes = 0;
}