aboutsummaryrefslogtreecommitdiff
path: root/src/kristall.hpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-01-08 15:34:54 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-01-08 11:12:14 +0100
commit35756f7a1b49f8d7aa603dd3bbe3c0a2c2d234a6 (patch)
treec9a8fd3bc483623cd1fa294ee8eb866dd189b93c /src/kristall.hpp
parent443da5e34a3b858a2a32c6ca6846e351fa11f389 (diff)
downloadkristall-35756f7a1b49f8d7aa603dd3bbe3c0a2c2d234a6.tar.gz
cache: item expiry and max item size
currently no total limit yet
Diffstat (limited to 'src/kristall.hpp')
-rw-r--r--src/kristall.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kristall.hpp b/src/kristall.hpp
index cd863dd..ceefa29 100644
--- a/src/kristall.hpp
+++ b/src/kristall.hpp
@@ -62,6 +62,11 @@ struct GenericSettings
// Additional toolbar items
bool enable_home_btn = false;
+ // In-memory caching
+ int cache_limit = 100;
+ int cache_threshold = 50;
+ int cache_life = 10;
+
void load(QSettings & settings);
void save(QSettings & settings) const;
};