1 package org.apache.turbine.services.cache; 2 3 18 19 import java.io.IOException ; 20 21 import org.apache.turbine.services.Service; 22 23 29 public interface GlobalCacheService 30 extends Service 31 { 32 String SERVICE_NAME = "GlobalCacheService"; 33 34 42 CachedObject getObject(String id) 43 throws ObjectExpiredException; 44 45 51 void addObject(String id, CachedObject o); 52 53 58 void removeObject(String id); 59 60 64 int getCacheSize() 65 throws IOException ; 66 67 71 int getNumberOfObjects(); 72 73 76 void flushCache(); 77 } 78 | Popular Tags |