1 package org.jahia.services.cache; 2 3 public interface Cache 4 { 5 public boolean containsKey (final Object entryKey); 6 public void flush (); 7 public void flush(boolean propagate); 8 public Object get (Object entryKey); 9 public String getName (); 10 public Object [] keys (); 11 public void put (Object entryKey, Object entryObj); 12 public void registerListener (CacheListener listener); 13 public void remove (Object entryKey); 14 public boolean isEmpty (); 15 public int size (); 16 public CacheEntry getCacheEntry (Object entryKey); 17 public void putCacheEntry (Object entryKey, CacheEntry entry, boolean propagate); 18 public int getCacheLimit (); 19 public void setCacheLimit (int limit); 20 21 public double getCacheEfficiency (); 22 public long getSuccessHits (); 23 public long getTotalHits (); 24 } 25 | Popular Tags |