From 2c3e70114920886fee3ca66835d2d5af89bf73e4 Mon Sep 17 00:00:00 2001 From: xream Date: Fri, 11 Apr 2025 15:21:41 +0800 Subject: [PATCH] doc: demo.js --- scripts/demo.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/demo.js b/scripts/demo.js index d088c70..27e06e5 100644 --- a/scripts/demo.js +++ b/scripts/demo.js @@ -89,6 +89,12 @@ function operator(proxies = [], targetPlatform, context) { // 其他平台同理, 持久化缓存数据在 JSON 里 + // 当配合脚本使用时, 可以在脚本的前面添加一个脚本操作, 实现保留 1 小时的缓存. 这样比较灵活 + + // async function operator() { + // scriptResourceCache._cleanup(undefined, 1 * 3600 * 1000); + // } + // ProxyUtils 为节点处理工具 // 可参考 https://t.me/zhetengsha/1066 // const ProxyUtils = {