resp协议定义, xml定义配置文件

This commit is contained in:
1iaan
2026-01-19 10:37:32 +00:00
parent e404554363
commit bb2c4275cb
46 changed files with 9998 additions and 473 deletions

26
config/config.xml Normal file
View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<config>
<server>
<ip>127.0.0.1</ip>
<port>8888</port>
<mode>master</mode> <!-- master / slave -->
<!-- 仅当 mode=slave 时使用 -->
<master>
<ip>192.168.10.129</ip>
<port>8888</port>
</master>
</server>
<log>
<level>INFO</level> <!-- DEBUG / INFO / ERROR -->
</log>
<persistence>
<type>none</type> <!-- incremental / none -->
</persistence>
<memory>
<allocator>jemalloc</allocator> <!-- jemalloc / malloc / other -->
</memory>
</config>