@Test public void testPut() throws Exception { MatchAllDocsQuery query = new MatchAllDocsQuery(); QueryResultKey queryResultKey = new QueryResultKey(query, new ArrayList<Query>(), new Sort(), 1 ); solrOffHeapCache.put( queryResultKey, new QueryValueSource(query,1) ); }
@Override public V put( K key, V value ) { synchronized ( this ) { if ( state == State.LIVE ) { stats.inserts.incrementAndGet(); } inserts++; cacheService.put( key, value ); return value; } }
SolrOffHeapCache implements SolrCache<K, V> { @Override public V put( K key, V value ) { synchronized ( this ) { if ( state == State.LIVE ) { stats.inserts.incrementAndGet(); } inserts++; cacheService.put( key, value ); return value; } } }
SolrOffHeapCache implements SolrCache<K, V> { @Override public V put( K key, V value ) { synchronized ( this ) { if ( state == State.LIVE ) { stats.inserts.incrementAndGet(); } inserts++; cacheService.put( key, value ); return value; } }  }
SolrOffHeapCache implements SolrCache<K, V> { @Override public V put( K key, V value ) { synchronized ( this ) { if ( state == State.LIVE ) { stats.inserts.incrementAndGet(); } inserts++; cacheService.put( key, value ); return value; } }  CacheService<K, V> getCacheService(); @Override Object init( Map args, Object persistence, CacheRegenerator regenerator ); @Override String name(); @Override int size(); @Override V put( K key, V value ); @Override V get( K key ); @Override void clear(); @Override void setState( State state ); @Override State getState(); @Override void warm( SolrIndexSearcher searcher, SolrCache<K, V> old ); @Override void close(); @Override String getName(); @Override String getVersion(); String getDescription(); Category getCategory(); @Override String getSourceId(); @Override String getSource(); @Override URL[] getDocs(); NamedList getStatistics(); @Override String toString(); }
SolrOffHeapCache implements SolrCache<K, V> { @Override public V put( K key, V value ) { synchronized ( this ) { if ( state == State.LIVE ) { stats.inserts.incrementAndGet(); } inserts++; cacheService.put( key, value ); return value; } }  CacheService<K, V> getCacheService(); @Override Object init( Map args, Object persistence, CacheRegenerator regenerator ); @Override String name(); @Override int size(); @Override V put( K key, V value ); @Override V get( K key ); @Override void clear(); @Override void setState( State state ); @Override State getState(); @Override void warm( SolrIndexSearcher searcher, SolrCache<K, V> old ); @Override void close(); @Override String getName(); @Override String getVersion(); String getDescription(); Category getCategory(); @Override String getSourceId(); @Override String getSource(); @Override URL[] getDocs(); NamedList getStatistics(); @Override String toString();  }