anyproxy icon indicating copy to clipboard operation
anyproxy copied to clipboard

FR: 增加缓存配置项

Open cuixiping opened this issue 6 years ago • 1 comments

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 参数传入

cuixiping avatar Apr 16 '19 06:04 cuixiping

Hi,欢迎提供PR来支持此项feature

ottomao avatar Jan 01 '20 04:01 ottomao