From 3acb3e9bdebcd1169d59cfee2a774f85ddb5b436 Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Wed, 8 Dec 2010 22:10:29 +0200 Subject: [PATCH] + added javadocs to dedicated ops --- .../keyvalue/redis/core/RedisOperations.java | 82 ++++++++++++++++--- 1 file changed, 72 insertions(+), 10 deletions(-) diff --git a/spring-data-redis/src/main/java/org/springframework/data/keyvalue/redis/core/RedisOperations.java b/spring-data-redis/src/main/java/org/springframework/data/keyvalue/redis/core/RedisOperations.java index 7dcbb3ab2..969aa9d28 100644 --- a/spring-data-redis/src/main/java/org/springframework/data/keyvalue/redis/core/RedisOperations.java +++ b/spring-data-redis/src/main/java/org/springframework/data/keyvalue/redis/core/RedisOperations.java @@ -82,23 +82,85 @@ public interface RedisOperations { Long sort(K key, SortParameters params, K destination); - ValueOperations valueOps(); + // operation types + /** + * Returns the operations performed on simple values (or Strings in Redis terminology). + * + * @return value operations + */ + ValueOperations getValueOps(); - BoundValueOperations forValue(K key); + /** + * Returns the operations performed on simple values (or Strings in Redis terminology) + * bound to the given key. + * + * @param key Redis key + * @return value operations bound to the given key + */ + BoundValueOperations boundValueOps(K key); - ListOperations listOps(); + /** + * Returns the operations performed on list values. + * + * @return list operations + */ + ListOperations getListOps(); - BoundListOperations forList(K key); + /** + * Returns the operations performed on list values bound to the given key. + * + * @param key Redis key + * @return list operations bound to the given key + */ + BoundListOperations boundListOps(K key); - SetOperations setOps(); + /** + * Returns the operations performed on set values. + * + * @return set operations + */ + SetOperations getSetOps(); - BoundSetOperations forSet(K key); + /** + * Returns the operations performed on set values bound to the given key. + * + * @param key Redis key + * @return set operations bound to the given key + */ + BoundSetOperations boundSetOps(K key); - ZSetOperations zSetOps(); + /** + * Returns the operations performed on zset values (also known as sorted sets). + * + * @return zset operations + */ + ZSetOperations getZSetOps(); - BoundZSetOperations forZSet(K key); + /** + * Returns the operations performed on zset values (also known as sorted sets) + * bound to the given key. + * + * @param key Redis key + * @return zset operations bound to the given key. + */ + BoundZSetOperations boundZSetOps(K key); - HashOperations hashOps(); + /** + * Returns the operations performed on hash values. + * + * @param hash key (or field) type + * @param hash value type + * @return hash operations + */ + HashOperations getHashOps(); - BoundHashOperations forHash(K key); + /** + * Returns the operations performed on hash values bound to the given key. + * + * @param hash key (or field) type + * @param hash value type + * @param key Redis key + * @return hash operations bound to the given key. + */ + BoundHashOperations boundHashOps(K key); } \ No newline at end of file