1 16 package org.apache.cocoon.caching; 17 18 import java.io.Serializable ; 19 20 import org.apache.avalon.framework.component.Component; 21 import org.apache.cocoon.ProcessingException; 22 23 33 public interface Cache 34 extends Component { 35 36 37 String ROLE = Cache.class.getName(); 38 39 45 void store(Serializable key, 46 CachedResponse response) 47 throws ProcessingException; 48 49 55 CachedResponse get(Serializable key); 56 57 63 void remove(Serializable key); 64 65 68 void clear(); 69 70 73 boolean containsKey(Serializable key); 74 } 75 | Popular Tags |