private void putEntry(String key,CacheHeader entry){
  if (!mEntries.containsKey(key)) {
    mTotalSize+=entry.size;
  }
 else {
    CacheHeader oldEntry=mEntries.get(key);
    mTotalSize+=(entry.size - oldEntry.size);
  }
  mEntries.put(key,entry);
}

private void putEntry ( String key , CacheHeader entry ) { if ( ! mEntries . containsKey ( key ) ) { mTotalSize += entry . size ; } else { CacheHeader oldEntry = mEntries . get ( key ) ; mTotalSize += ( entry . size - oldEntry . size ) ; } mEntries . put ( key , entry ) ; }
puts the entry with the specified key into the cache .
