30秒缓存

This commit is contained in:
2025-06-03 09:49:42 +08:00
parent 5dfe6d6356
commit 838430ee2f

View File

@@ -171,7 +171,7 @@ func (s *S3Adapter) GetFileList(ctx context.Context, dirPath string, relDt time.
cacheItem := cacheItem{
data: fileList,
expires: time.Now().Add(10 * time.Second),
expires: time.Now().Add(30 * time.Second),
}
s3Cache.Store(cacheKey, cacheItem)
log.Println("缓存文件列表", cacheKey)