From 0ad86a4bbf449bef33d0f4b28df32498adda09c4 Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Thu, 2 Dec 2010 19:39:48 +0200 Subject: [PATCH] + update README.md --- README.md | 60 +++++++++++++++++++++++++------------------------------ 1 file changed, 27 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index bc31447fa..8a7e6e221 100644 --- a/README.md +++ b/README.md @@ -19,51 +19,45 @@ For those in a hurry: * Download the jar through Maven: - - org.springframework.data - spring-data-keyvalue - 1.0.0-BUILD-SNAPSHOT - + + org.springframework.data + spring-data-keyvalue + 1.0.0-BUILD-SNAPSHOT + - - spring-maven-snapshot - true - Springframework Maven SNAPSHOT Repository - http://maven.springframework.org/snapshot - + + spring-maven-snapshot + true + Springframework Maven SNAPSHOT Repository + http://maven.springframework.org/snapshot + * Configure the Redis connector to use (here [jedis](https://github.com/xetorthio/jedis)): - - - - - - - - + + + + + + * Use RedisTemplate to interact with the Redis store: - - String random = template.randomKey(); - template.set(random, new Person("John", "Smith")); - + 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 listOps = template.listOps(); - listOps.rightPush(random, new Person("Jane", "Smith")); - List peopleOnSecondFloor = listOps.range("users:floor:2", 0, -1); - + ListOperations listOps = template.listOps(); + listOps.rightPush(random, new Person("Jane", "Smith")); + List peopleOnSecondFloor = listOps.range("users:floor:2", 0, -1); # Riak