增加edge-node cache.garbage命令用于清理垃圾缓存

This commit is contained in:
刘祥超
2023-09-15 18:14:58 +08:00
parent 64642c6680
commit 99670e46a5
10 changed files with 284 additions and 66 deletions

View File

@@ -4,8 +4,8 @@ package caches
import "strings"
// 获取 ranges 文件路径
func partialRangesFilePath(path string) string {
// PartialRangesFilePath 获取 ranges 文件路径
func PartialRangesFilePath(path string) string {
// ranges路径
var dotIndex = strings.LastIndex(path, ".")
var rangePath string