mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-30 19:41:45 +00:00
feat: make 5m cache-creation ratio configurable
This commit is contained in:
@@ -362,6 +362,11 @@ func InitRatioSettings() {
|
||||
cacheRatioMap = defaultCacheRatio
|
||||
cacheRatioMapMutex.Unlock()
|
||||
|
||||
// Initialize createCacheRatioMap (5m cache creation ratio)
|
||||
createCacheRatioMapMutex.Lock()
|
||||
createCacheRatioMap = defaultCreateCacheRatio
|
||||
createCacheRatioMapMutex.Unlock()
|
||||
|
||||
// initialize imageRatioMap
|
||||
imageRatioMapMutex.Lock()
|
||||
imageRatioMap = defaultImageRatio
|
||||
|
||||
Reference in New Issue
Block a user