Use human-readable memory cache capacity in config

This commit is contained in:
Cohee
2025-03-05 00:45:34 +02:00
parent 13cfe1650f
commit 28bad6479c
4 changed files with 19 additions and 19 deletions

View File

@@ -98,8 +98,8 @@ const keyMigrationMap = [
},
{
oldKey: 'cardsCacheCapacity',
newKey: 'performance.cardsCacheCapacity',
migrate: (value) => value,
newKey: 'performance.memoryCacheCapacity',
migrate: (value) => `${value}mb`,
},
// uncomment one release after 1.12.13
/*