diff options
Diffstat (limited to 'src/cachehandler.hpp')
| -rw-r--r-- | src/cachehandler.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cachehandler.hpp b/src/cachehandler.hpp index a8bdb0f..0d20962 100644 --- a/src/cachehandler.hpp +++ b/src/cachehandler.hpp @@ -48,7 +48,7 @@ struct CachedPage {} }; -// TODO: move away from the 'unordered_map' type? +// Maybe unordered_map isn't the best type for this? typedef std::unordered_map<QString, std::shared_ptr<CachedPage>> CacheMap; class CacheHandler @@ -71,6 +71,8 @@ private: bool contains(QString const & url); + void popOldest(); + private: // In-memory cache storage. CacheMap page_cache; |
