izeOf(K, V)">sizeOf(K, V)</a></code> to size the cache in different units. For example, this cache
 is limited to 4MiB of bitmaps:
 <pre>   <code>int cacheSize = 4 * 1024 * 1024; // 4MiB
   LruCache<String, Bitmap> bitmapCache = new LruCache<String, Bitmap>(cacheSize) {
       protected int sizeOf(String key, Bitmap value) {
           return value.getByteCount();
       </code>
   }}</pre>

 <p>This class is thread-safe. Perform multiple cache operations atomically by
 synchronizing on the cache: <pre>   <