Redis参数配置指南
<p class="shortdesc">Redis配置需要根据redis的架构模式来判断使用哪些配置项。</p>
<section class="section" id="Redis__section_tkp_kkv_bsb"><h2 class="doc-tairway">Redis采用主从模式的架构</h2>
<div class="p">
<pre class="pre codeblock" id="Redis__codeblock_ym1_mkv_bsb"><code>spring.redis.port=
spring.redis.host=
spring.redis.password=</code></pre>
</div>
</section>
<section class="section" id="Redis__section_wpq_mkv_bsb"><h2 class="doc-tairway">Redis采用哨兵模式的架构</h2>
<div class="p">
<pre class="pre codeblock" id="Redis__codeblock_o5z_nkv_bsb"><code>spring.redis.sentinel.nodes=
spring.redis.sentinel.master=
spring.redis.password=</code></pre>
</div>
</section>
<section class="section" id="Redis__section_uzh_4kv_bsb"><h2 class="doc-tairway">Redis采用集群模式的架构</h2>
<div class="p">
<pre class="pre codeblock" id="Redis__codeblock_ug3_pkv_bsb"><code>spring.redis.cluster.nodes=
spring.redis.cluster.max-redirects=
spring.redis.password=</code></pre>
</div>
</section>
<section class="section" id="Redis__section_wpm_rkv_bsb">
<div class="note note note_note" id="Redis__note_jcx_skv_bsb"><span class="note__title">说明:</span>
<p class="p">Redis的详细配置可参考spring cloud redis详细说明。</p>
</div>
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!