2 ***************************************************************************
3 * Copyright (c) 2007-2009 International Business Machines Corporation and *
4 * others. All rights reserved. *
5 ***************************************************************************
8 package com.ibm.icu.impl;
10 public interface ICUCache<K, V> {
11 // Type of reference holding the Map instance
12 public static final int SOFT = 0;
13 public static final int WEAK = 1;
15 // NULL object, which may be used for a cache key
16 public static final Object NULL = new Object();
19 public void put(K key, V value);
20 public V get(Object key);