package org.gcube.portlets.user.topics.server.cache; /** * Cache interface * @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it) * @param the key type * @param the value type */ public interface CacheInterface { /** * Retrieve a value V from the cache * @param key * @return */ public V get(K key); /** * Insert an object V with key K into the cache * @param key * @param value * @return */ public boolean insert(K key, V value); }