bitsadmin cache 和 setexpirationtime

适用范围:Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012

设置缓存到期时间。

语法

bitsadmin /cache /setexpirationtime secs

参数

参数 说明
secs 缓存到期之前经过的秒数。

示例

将缓存设置为 60 秒后到期:

bitsadmin /cache / setexpirationtime 60