mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: max cache size
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -468,6 +468,9 @@ class GStorage {
|
||||
SettingBoxKey.pageTransition,
|
||||
defaultValue: Transition.native.index)];
|
||||
|
||||
static num get maxCacheSize => GStorage.setting
|
||||
.get(SettingBoxKey.maxCacheSize, defaultValue: pow(1024, 3));
|
||||
|
||||
static List<double> get dynamicDetailRatio => List<double>.from(setting
|
||||
.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]));
|
||||
|
||||
@@ -669,6 +672,7 @@ class SettingBoxKey {
|
||||
/// 其他
|
||||
autoUpdate = 'autoUpdate',
|
||||
autoClearCache = 'autoClearCache',
|
||||
maxCacheSize = 'maxCacheSize',
|
||||
defaultShowComment = 'defaultShowComment',
|
||||
replySortType = 'replySortType',
|
||||
defaultDynamicType = 'defaultDynamicType',
|
||||
|
||||
Reference in New Issue
Block a user