Enable testing RedisTemplate with multiple serializers

This commit is contained in:
Jennifer Hickey
2013-07-29 16:10:12 -07:00
parent 997ba2c40e
commit 226d6b4c87
2 changed files with 112 additions and 81 deletions

View File

@@ -1,22 +0,0 @@
<?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:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="srpConnectionFactory"
class="org.springframework.data.redis.connection.srp.SrpConnectionFactory">
<property name="hostName">
<bean class="org.springframework.data.redis.SettingsUtils"
factory-method="getHost" />
</property>
<property name="port">
<bean class="org.springframework.data.redis.SettingsUtils"
factory-method="getPort" />
</property>
</bean>
<bean class="org.springframework.data.redis.core.StringRedisTemplate">
<property name="connectionFactory" ref="srpConnectionFactory" />
</bean>
</beans>