1 Star 0 Fork 248

淼哥不坏 / AutoLoadCache

forked from qiujiayu / AutoLoadCache 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Memcache.md 1018 Bytes
一键复制 编辑 原始数据 按行查看 历史
qiujiayu 提交于 2018-12-12 23:06 . 调整说明文档代码

Memcache配置

<bean id="memcachedClient" class="net.spy.memcached.spring.MemcachedClientFactoryBean">
    <property name="servers" value="192.138.11.165:11211,192.138.11.166:11211" />
    <property name="protocol" value="BINARY" />
    <property name="transcoder">
        <bean class="net.spy.memcached.transcoders.SerializingTranscoder">
            <property name="compressionThreshold" value="1024" />
        </bean>
    </property>
    <property name="opTimeout" value="2000" />
    <property name="timeoutExceptionThreshold" value="1998" />
    <property name="hashAlg">
        <value type="net.spy.memcached.DefaultHashAlgorithm">KETAMA_HASH</value>
    </property>
    <property name="locatorType" value="CONSISTENT" />
    <property name="failureMode" value="Redistribute" />
    <property name="useNagleAlgorithm" value="false" />
</bean>

<bean id="cacheManager" class="com.jarvis.cache.memcache.MemcachedCacheManager">
  <property name="memcachedClient", ref="memcachedClient" />
</bean>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/xugm/AutoLoadCache.git
git@gitee.com:xugm/AutoLoadCache.git
xugm
AutoLoadCache
AutoLoadCache
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891