diff --git a/README.md b/README.md index ba8144576..fbecba92c 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,50 @@ For those in a hurry: ## Riak +* Download the jar through Maven: + + + org.springframework.data + spring-data-riak + 1.0.0-BUILD-SNAPSHOT + + + + spring-maven-snapshot + true + Springframework Maven SNAPSHOT Repository + http://maven.springframework.org/snapshot + + +* Configure the RiakTemplate in your Spring ApplicationContext: + + + + + + + +* Use the RiakTemplate in your code: + + Java: + ----- + + MyObject obj = new MyObject("value1", "value2"); + riakTemplate.set("mybucket:mykey", obj); + + Map returnObj = riakTemplate.getAsType("mybucket:mykey", Map.class); + + Groovy: + ----- + + def obj = [first: "value1", second: "value2"] + riakTemplate.set([bucket: "mybucket", key: "mykey"], obj) + Contributing to Spring Data ---------------------------