X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fcache%2FCache.java;h=8fdc2e8d24f27450f7999b359f9c3c74e7178aa7;hb=8de36ff0206c996baf3ee4adc3e2293b12ff5f39;hp=92df65ec26d31f1bf02ce597d3685d3cceb96225;hpb=89c06d4d52b46c154128c97d6e758fa1f4fc7a6e;p=utils diff --git a/support/general/src/main/java/org/wamblee/cache/Cache.java b/support/general/src/main/java/org/wamblee/cache/Cache.java index 92df65ec..8fdc2e8d 100644 --- a/support/general/src/main/java/org/wamblee/cache/Cache.java +++ b/support/general/src/main/java/org/wamblee/cache/Cache.java @@ -17,36 +17,38 @@ package org.wamblee.cache; import java.io.Serializable; - /** - * The Cache interface represents... a cache. - * In some circumstances it is more optimal to implement caching directly in - * the code instead of relying on Hibernate caching methods. This interface abstracts - * from the used cache implementation. - * Cache implementations must be thread-safe. + * The Cache interface represents... a cache. In some circumstances + * it is more optimal to implement caching directly in the code instead of + * relying on Hibernate caching methods. This interface abstracts from the used + * cache implementation. Cache implementations must be thread-safe. */ public interface Cache { /** * Adds a key-value pair to the cache. - * - * @param aKey Key. - * @param aValue Value. + * + * @param aKey + * Key. + * @param aValue + * Value. */ void put(KeyType aKey, ValueType aValue); /** * Retrieves a value from the cache. - * - * @param aKey Key to retrieve. - * + * + * @param aKey + * Key to retrieve. + * * @return Key. */ ValueType get(KeyType aKey); /** * Removes an entry from the cache. - * - * @param aKey Key to remove the entry for. + * + * @param aKey + * Key to remove the entry for. */ void remove(KeyType aKey);