1 5 package com.opensymphony.oscache.base.persistence; 6 7 import com.opensymphony.oscache.base.Config; 8 9 import java.util.Set ; 10 11 20 public interface PersistenceListener { 21 26 public boolean isStored(String key) throws CachePersistenceException; 27 28 33 public boolean isGroupStored(String groupName) throws CachePersistenceException; 34 35 38 public void clear() throws CachePersistenceException; 39 40 44 public PersistenceListener configure(Config config); 45 46 49 public void remove(String key) throws CachePersistenceException; 50 51 56 public void removeGroup(String groupName) throws CachePersistenceException; 57 58 66 public Object retrieve(String key) throws CachePersistenceException; 67 68 76 public void store(String key, Object obj) throws CachePersistenceException; 77 78 85 public void storeGroup(String groupName, Set group) throws CachePersistenceException; 86 87 95 Set retrieveGroup(String groupName) throws CachePersistenceException; 96 } 97 | Popular Tags |