Project

General

Profile

« Previous | Next » 

Revision 43288

deprecated custom use of Caches, we should stick instead on the caching mechanism provided by spring

View differences:

modules/cnr-misc-utils/trunk/src/main/java/eu/dnetlib/miscutils/cache/EhCache.java
18 18
 * @param <K>
19 19
 * @param <V>
20 20
 */
21
@Deprecated
21 22
public class EhCache<K, V> implements Cache<K, V> { // NOPMD
22 23
	public class MapEntry implements java.util.Map.Entry<K, V> {
23 24

  
modules/cnr-misc-utils/trunk/src/main/java/eu/dnetlib/miscutils/cache/Cache.java
13 13
 * @param <V>
14 14
 *            value type
15 15
 */
16
@Deprecated
16 17
public interface Cache<K, V> extends Map<K, V> {
17 18
	V put(K key, CacheElement<V> element);
18 19

  
modules/cnr-misc-utils/trunk/src/main/java/eu/dnetlib/miscutils/cache/CacheElement.java
8 8
 * @param <T>
9 9
 *            type of payload
10 10
 */
11
@Deprecated
11 12
public class CacheElement<T> {
12 13
	private T value;
13 14
	private int timeToLive;

Also available in: Unified diff