1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package net.jot.utils.caching; /** * * @author thibautc */ public interface CacheProvider { /** * If an object is not cached yet, this will be called to get it. * This will be called synchronized. * @param key * @return */ public abstract Object readCacheItem(Object key) throws Exception; }