logic: Cache graph and stats of overview in StorageCache

This commit is contained in:
Eberhard Graether
2016-08-10 13:15:45 +02:00
parent d0cf500c8e
commit 2800c072ff
6 changed files with 30 additions and 25 deletions
+5 -2
View File
@@ -11,10 +11,13 @@ class StorageCache
public:
void clear();
virtual std::vector<Id> getTokenIdsForMatches(const std::vector<SearchMatch>& matches) const;
virtual std::shared_ptr<Graph> getGraphForAll() const;
virtual StorageStats getStorageStats() const;
private:
mutable std::map<std::string, std::vector<Id>> m_queryToTokenIds;
mutable std::shared_ptr<Graph> m_graphForAll;
mutable StorageStats m_storageStats;
};
#endif // STORAGE_CACHE_H