template<class dictbase, class type>
Called when totalCost() exceeds maxCost() to purge the least recently used items. The default implementation works on the basis of the least recently looked up via find(), however this is virtual so you can override it with a more intelligent mechanism Definition at line 113 of file FXLRUCache.h. 00114 { 00115 while(cost>maximum) 00116 { 00117 CacheItem *ci=&cache.back(); 00118 remove(ci->key); 00119 --stats.removed; ++stats.flushed; 00120 } 00121 }
|