detect_buffers是什么意思?能解说一下吗

来源:4-2 Redis实战应用配置—get&set方法

宝慕林2536541

2020-10-06 23:21:44

detect_buffers是什么意思?能解说一下吗

写回答

1回答

Brian

2020-10-07

最好的回答就是看文档啊,小伙伴

detect_buffers: default to false. If set to true, then replies will be sent to callbacks as node Buffer objects if any of the input arguments to the original command were Buffer objects. This option lets you switch between Buffers and Strings on a per-command basis, whereas return_buffers applies to every command on a client.

建立redis连接时设置,默认为false,打开设置为true,打开这个参数redis技能返回二进制数据了。


0

0 学习 · 1842 问题

查看课程