added redisson-1.1.xsd to support SSL related changes
changed the creation of RedisClient to use RedisClientConfig updated test xml to use 1.1 xsd updated wiki test xml to include SSL related configs in reflection to changes made in wikipull/894/head
parent
8477f15640
commit
1c7b2a251c
@ -1,2 +1,3 @@
|
||||
http\://redisson.org/schema/redisson/redisson.xsd=org/redisson/spring/support/redisson-1.0.xsd
|
||||
http\://redisson.org/schema/redisson/redisson.xsd=org/redisson/spring/support/redisson-1.1.xsd
|
||||
http\://redisson.org/schema/redisson/redisson-1.0.xsd=org/redisson/spring/support/redisson-1.0.xsd
|
||||
http\://redisson.org/schema/redisson/redisson-1.1.xsd=org/redisson/spring/support/redisson-1.1.xsd
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xmlns:redisson="http://redisson.org/schema/redisson"
|
||||
xsi:schemaLocation="
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
|
||||
http://redisson.org/schema/redisson classpath:org/redisson/spring/support/redisson-1.1.xsd
|
||||
">
|
||||
<bean id="myExecutor" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
|
||||
<property name="staticMethod" value="java.util.concurrent.Executors.newFixedThreadPool"/>
|
||||
<property name="arguments" value="8"/>
|
||||
</bean>
|
||||
<bean id="myEventLoopGroup" class="io.netty.channel.nio.NioEventLoopGroup"/>
|
||||
<bean id="myTimer" class="io.netty.util.HashedWheelTimer"/>
|
||||
|
||||
<redisson:redis
|
||||
id="redisClient"
|
||||
name="redisClient1,redisClient2"
|
||||
address="redis://127.0.0.1:6379"
|
||||
timer-ref="myTimer"
|
||||
executor-ref="myExecutor"
|
||||
group-ref="myEventLoopGroup"
|
||||
socket-channel-class="io.netty.channel.socket.nio.NioSocketChannel"
|
||||
connect-timeout="2000"
|
||||
command-timeout="10000"
|
||||
ssl-enable-endpoint-identification="true"
|
||||
ssl-provider="JDK"
|
||||
ssl-truststore="/tmp/truststore.p12"
|
||||
ssl-truststore-password="no_pass"
|
||||
ssl-keystore="/tmp/keystore.p12"
|
||||
ssl-keystore-password="no_pass"
|
||||
password="do_not_use_if_it_is_not_set"
|
||||
database="1"
|
||||
client-name="myClient"
|
||||
read-only="false"
|
||||
>
|
||||
<!--
|
||||
You can't have both name attribute and qualifier element at
|
||||
the same time.
|
||||
|
||||
Both id attribute and name attribute can be used as qualifier
|
||||
candidates.
|
||||
-->
|
||||
<!--<qualifier value="redisClient3"/>-->
|
||||
</redisson:redis>
|
||||
</beans>
|
Loading…
Reference in New Issue