From ab29480743f128b70a674ac5b4be67cbf5f98d28 Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Tue, 9 Nov 2010 11:46:30 +0200 Subject: [PATCH] + updated Zset commands --- .../redis/connection/RedisZSetCommands.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spring-datastore-redis/src/main/java/org/springframework/datastore/redis/connection/RedisZSetCommands.java b/spring-datastore-redis/src/main/java/org/springframework/datastore/redis/connection/RedisZSetCommands.java index e70374ca1..70f68990c 100644 --- a/spring-datastore-redis/src/main/java/org/springframework/datastore/redis/connection/RedisZSetCommands.java +++ b/spring-datastore-redis/src/main/java/org/springframework/datastore/redis/connection/RedisZSetCommands.java @@ -16,7 +16,7 @@ package org.springframework.datastore.redis.connection; -import java.util.List; +import java.util.Set; /** @@ -26,7 +26,7 @@ import java.util.List; */ public interface RedisZSetCommands { - public enum AGGREGATE { + public enum Aggregate { SUM, MIN, MAX; } @@ -40,11 +40,11 @@ public interface RedisZSetCommands { Integer zRevRank(String key, String value); - List zRange(String key, int start, int end); + Set zRange(String key, int start, int end); - List zRevRange(String key, int start, int end); + Set zRevRange(String key, int start, int end); - List zRangeByScore(String key, double min, double max); + Set zRangeByScore(String key, double min, double max); Integer zCount(String key, double min, double max); @@ -58,9 +58,9 @@ public interface RedisZSetCommands { Integer zUnionStore(String destKey, String... sets); - Integer zUnionStore(String destKey, AGGREGATE aggregate, double[] weights, String... sets); + Integer zUnionStore(String destKey, Aggregate aggregate, int[] weights, String... sets); Integer zInterStore(String destKey, String... sets); - Integer zInterStore(String destKey, AGGREGATE aggregate, double[] weights, String... sets); + Integer zInterStore(String destKey, Aggregate aggregate, int[] weights, String... sets); } \ No newline at end of file