From 3c1eca4cee24b96d04ff8721150f6df4624af540 Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Mon, 13 Dec 2010 10:35:06 +0200 Subject: [PATCH] + add more redis content --- src/docbkx/index.xml | 1 + src/docbkx/reference/redis.xml | 80 ++++++++++++++++++++++++++++++++-- 2 files changed, 78 insertions(+), 3 deletions(-) diff --git a/src/docbkx/index.xml b/src/docbkx/index.xml index 8044fb00a..4ebd50960 100644 --- a/src/docbkx/index.xml +++ b/src/docbkx/index.xml @@ -10,6 +10,7 @@ Costin Leau + SpringSource diff --git a/src/docbkx/reference/redis.xml b/src/docbkx/reference/redis.xml index 55a1b4e1a..42cdaa201 100644 --- a/src/docbkx/reference/redis.xml +++ b/src/docbkx/reference/redis.xml @@ -111,7 +111,7 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> + p:host-name="server" p:port="6379" p:use-pool="true"/> ]]> @@ -134,14 +134,88 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> + p:host-name="server" p:port="6379" p:use-pool="true"/> ]]> - + As one can note, the configuration is quite similar to the Jedis one. + +
Working with Objects through <classname>RedisTemplate</classname> + + Most users are likely to use RedisTemplate and its coresponding package org.springframework.data.keyvalue.redis.core. + The template offers a high-level abstraction for Redis interaction - while RedisConnection offer low level methods that accept and return + binary values (byte arrays), the template takes care of serialization and connection management, freeing the user from dealing with such details. + + Moreover, the template provides operations views (following the grouping from Redis command reference) + that offer rich, generified interfaces for working against a certain type or certain key (through the KeyBound interfaces) as described below: + + + Operational views + + + + + + + + Interface + Redis description + + + + + + + + ValueOperations + Redis string (or value) operations + + + ListOperations + Redis list operations + + + SetOperations + Redis set operations + + + ZSetOperations + Redis zset (or sorted set) operations + + + HashOperations + Redis hash operations + + + + + + BoundValueOperations + Redis string (or value) key bound operations + + + BoundListOperations + Redis list key bound operations + + + BoundSetOperations + Redis set key bound operations + + + BoundZSetOperations + Redis zset (or sorted set) key bound operations + + + BoundHashOperations + Redis hash key bound operations + + + +
+