anyproxy
anyproxy copied to clipboard
FR: 增加缓存配置项
The version of the AnyProxy
AnyProxy 4.1.0
Your expected behavior of AnyProxy
将 AnyProxy 作为其他程序的子功能组件进行使用时,往往需要限定文件读写范围。
希望缓存配置可以通过 options 参数传入。主要是配置缓存路径、是否启用缓存。
例如
const options = {
. . . . . .
cache: {
enable: true, //默认启用缓存
dir: '~/.anyproxy' //缓存目录路径
}
};
const proxyServer = new AnyProxy.ProxyServer(options);
The actual behavior of AnyProxy
目前,缓存配置无法通过 options 参数传入
Hi,欢迎提供PR来支持此项feature