mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-14 04:10:26 +08:00
使用MMAP提升缓存读取性能
This commit is contained in:
@@ -41,6 +41,7 @@ func (this *CreatePopupAction) RunPost(params struct {
|
||||
MaxSizeJSON []byte
|
||||
FetchTimeoutJSON []byte
|
||||
SyncCompressionCache bool
|
||||
EnableMMAP bool
|
||||
|
||||
Description string
|
||||
IsOn bool
|
||||
@@ -97,6 +98,7 @@ func (this *CreatePopupAction) RunPost(params struct {
|
||||
OpenFileCache: openFileCacheConfig,
|
||||
EnableSendfile: params.FileEnableSendfile,
|
||||
MinFreeSize: minFreeSize,
|
||||
EnableMMAP: params.EnableMMAP,
|
||||
}
|
||||
case serverconfigs.CachePolicyStorageMemory:
|
||||
options = &serverconfigs.HTTPMemoryCacheStorage{}
|
||||
|
||||
Reference in New Issue
Block a user