feat: use human readable sizes in cache size configuration

This commit is contained in:
Deluan 2020-03-18 20:39:10 -04:00
parent faac303eff
commit c8cd755451
5 changed files with 16 additions and 3 deletions

View file

@ -15,7 +15,10 @@ const (
UIAssetsLocalPath = "ui/build"
CacheDir = "cache"
CacheDir = "cache"
DefaultTranscodingCacheSize = 100 * 1024 * 1024 // 100MB
DefaultTranscodingCacheMaxItems = 0 // Unlimited
DefaultTranscodingCachePurgeInterval = 10 * time.Minute
DevInitialUserName = "admin"
DevInitialName = "Dev Admin"