1 package com.loribel.commons.abstraction; 2 3 /*** 4 * Map to manage a cache 5 * 6 * @author Gregory Borelli 7 */ 8 public interface GB_MapCache 9 { 10 Object getFromCache( 11 Object a_key); 12 13 Object getFromCache( 14 Object a_key, 15 long a_delay); 16 17 Object putIntoCache( 18 Object a_key, 19 Object a_value); 20 21 Object removeFromCache( 22 Object a_key); 23 24 void clearCache(); 25 }