示例#1
0
 public V get(K key) {
   CacheEntry<K, V> e = map.get(key);
   if (e == null) {
     if (islive) stats.missCounter.incrementAndGet();
     return null;
   }
   if (islive) e.lastAccessed = stats.accessCounter.incrementAndGet();
   return e.value;
 }
 public V get(long key) {
   CacheEntry<V> e = map.get(key);
   if (e == null) {
     missCounter.incrementAndGet();
     return null;
   }
   e.lastAccessed = accessCounter.incrementAndGet();
   return e.value;
 }