add docs on SRP connector

This commit is contained in:
Costin Leau
2012-06-26 21:39:40 +03:00
parent aebc85d897
commit 2c076a8c02

View File

@@ -161,7 +161,7 @@
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="jredisConnectionFactory" class="org.springframework.data.redis.connection.rjc.RjcConnectionFactory"
<bean id="rjcConnectionFactory" class="org.springframework.data.redis.connection.rjc.RjcConnectionFactory"
p:host-name="server" p:port="6379"/>
</beans>]]></programlisting>
@@ -176,6 +176,29 @@
</section>
<section id="redis:connectors:srp">
<title>Configuring SRP connector</title>
<para><ulink url="https://github.com/spullara/redis-protocol">SRP</ulink> (an acronym for Sam's Redis Protocol) is the forth, open-source connector supported by
Spring Redis through the <literal>org.springframework.data.redis.connection.srp</literal> package.</para>
<para>By now, its configuration is probably easy to guess::</para>
<programlisting language="xml"><![CDATA[<?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"
p:host-name="server" p:port="6379"/>
</beans>]]></programlisting>
<para>Needless to say, the configuration is quite similar to that of the other connectors.</para>
</section>
</section>
<section id="redis:template">