001 /*
002 @license.text@
003 */
004 package biz.hammurapi.cache;
005
006 /**
007 * Cache which supports addition of values and returns key for added value.
008 * @author Pavel Vlasov
009 * @revision $Revision$
010 */
011 public interface AppendableCache extends Cache {
012 /**
013 * Add new value to the cache
014 * @param value
015 * @param time Time when entry was placed to the cache
016 * @param expirationTime Expiration time
017 * @return key for the value
018 */
019 Object add(Object value, long time, long expirationTime);
020 }