| 141 | } |
| 142 | |
| 143 | void ItemDatabase::cleanup() { |
| 144 | { |
| 145 | MutexLocker locker(m_cacheMutex); |
| 146 | m_itemCache.cleanup([](ItemCacheEntry const&, ItemPtr const& item) { |
| 147 | return !item.unique(); |
| 148 | }); |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | ItemPtr ItemDatabase::diskLoad(Json const& diskStore) const { |
| 153 | if (diskStore) { |