+ update README.md

This commit is contained in:
Costin Leau
2010-12-02 19:28:46 +02:00
parent 62887430a1
commit 49640696a8

View File

@@ -25,6 +25,7 @@ For those in a hurry:
<version>1.0.0-BUILD-SNAPSHOT</version>
</dependency>
<repository>
<id>spring-maven-snapshot</id>
<snapshots><enabled>true</enabled></snapshots>
@@ -32,6 +33,7 @@ For those in a hurry:
<url>http://maven.springframework.org/snapshot</url>
</repository>
* Configure the Redis connector to use (here [jedis](https://github.com/xetorthio/jedis) ):
<beans xmlns="http://www.springframework.org/schema/beans"
@@ -42,14 +44,17 @@ For those in a hurry:
<bean id="jedisFactory" class="org.springframework.data.keyvalue.redis.connection.jedis.JedisConnectionFactory"/>
<bean id="redisTemplate" class="org.springframework.data.keyvalue.redis.core.RedisTemplate" p:connection-factory="jedisFactory"/>
<bean id="redisTemplate" class="org.springframework.data.keyvalue.redis.core.RedisTemplate"
p:connection-factory="jedisFactory"/>
</beans>
* Use RedisTemplate to interact with the Redis store
String random = template.randomKey();
template.set(random, new Person("John", "Smith"));
* Use Redis 'views' to execute specific operations based on the underlying Redis type
ListOperations<String, Person> listOps = template.listOps();