增加readme.md

This commit is contained in:
luoxiang 2019-01-07 20:00:25 +08:00
parent 8716dd8648
commit 4d91ea3182
3 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@ package com.heibaiying.memcached;
import net.rubyeye.xmemcached.MemcachedClient;
import net.rubyeye.xmemcached.exception.MemcachedException;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
@ -28,6 +29,6 @@ public class MemSamples {
System.out.println("hello=" + value);
memcachedClient.delete("hello");
value = memcachedClient.get("hello");
System.out.println("hello=" + value);
Assert.assertNull(value);
}
}

View File

@ -281,7 +281,7 @@ public class JedisClusterSamples {
<!-- 最基本配置 -->
<redisson:client>
<!--集群更多配置参数见官方文档 2.4.2 通过JSON、YAML和Spring XML文件配置集群模式
<a src="https://github.com/redisson/redisson/wiki/2.-%E9%85%8D%E7%BD%AE%E6%96%B9%E6%B3%95#24-%E9%9B%86%E7%BE%A4%E6%A8%A1%E5%BC%8F"> -->
<a href="https://github.com/redisson/redisson/wiki/2.-%E9%85%8D%E7%BD%AE%E6%96%B9%E6%B3%95#24-%E9%9B%86%E7%BE%A4%E6%A8%A1%E5%BC%8F"> -->
<redisson:cluster-servers>
<redisson:node-address value="redis://127.0.0.1:6379"/>
<redisson:node-address value="redis://127.0.0.1:6380"/>

View File

@ -8,7 +8,7 @@
<!-- 最基本配置 -->
<redisson:client>
<!--集群更多配置参数见官方文档 2.4.2 通过JSON、YAML和Spring XML文件配置集群模式
<a src="https://github.com/redisson/redisson/wiki/2.-%E9%85%8D%E7%BD%AE%E6%96%B9%E6%B3%95#24-%E9%9B%86%E7%BE%A4%E6%A8%A1%E5%BC%8F"> -->
<a href="https://github.com/redisson/redisson/wiki/2.-%E9%85%8D%E7%BD%AE%E6%96%B9%E6%B3%95#24-%E9%9B%86%E7%BE%A4%E6%A8%A1%E5%BC%8F"> -->
<redisson:cluster-servers>
<redisson:node-address value="redis://127.0.0.1:6379"/>
<redisson:node-address value="redis://127.0.0.1:6380"/>