You've already forked VptPassiveAdapter
30秒缓存
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user