| 141 | } |
| 142 | |
| 143 | void CaseCache::update_lru(CaseCacheNode *node) |
| 144 | { |
| 145 | // if node isn't already at front of list, remove |
| 146 | // it from wherever it was and put it at the front |
| 147 | |
| 148 | if (node->m_list_it != m_lru_list.begin()) { |
| 149 | m_lru_list.erase(node->m_list_it); |
| 150 | m_lru_list.push_front(node); |
| 151 | node->m_list_it = m_lru_list.begin(); |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | bool CaseCache::store(LPCWSTR dirpath, const list<wstring>& files) |
| 156 | { |