putValue method

void putValue(
  1. K key,
  2. V value
)

Implementation

void putValue(final K key, final V value) {
  if (_primaryCache.length >= halfCacheMaxSize) {
    _secondaryCache.clear();
    _swapCaches();
  }
  _primaryCache[key] = value;
}