Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCacheStats ¶
func GetCacheStats() common.DiskCacheStats
GetCacheStats 获取缓存统计信息(代理到 common 包)
Types ¶
type PerformanceSetting ¶
type PerformanceSetting struct {
// DiskCacheEnabled 是否启用磁盘缓存(磁盘换内存)
DiskCacheEnabled bool `json:"disk_cache_enabled"`
// DiskCacheThresholdMB 触发磁盘缓存的请求体大小阈值(MB)
DiskCacheThresholdMB int `json:"disk_cache_threshold_mb"`
// DiskCacheMaxSizeMB 磁盘缓存最大总大小(MB)
DiskCacheMaxSizeMB int `json:"disk_cache_max_size_mb"`
// DiskCachePath 磁盘缓存目录
DiskCachePath string `json:"disk_cache_path"`
}
PerformanceSetting 性能设置配置
func GetPerformanceSetting ¶
func GetPerformanceSetting() *PerformanceSetting
GetPerformanceSetting 获取性能设置
Click to show internal directories.
Click to hide internal directories.