@@ -627,7 +627,7 @@ namespace cpp_redis {
627627 }
628628
629629 template <typename T>
630- RESULTS_TYPE list_range (T&& key, int start, int end)
630+ std::vector <std::string> list_range (T&& key, int start, int end)
631631 {
632632 static_assert (is_list_, " This API Support List Request" );
633633
@@ -930,7 +930,7 @@ namespace cpp_redis {
930930
931931 // 只是随机,不会发生删除
932932 template <typename T>
933- RESULTS_TYPE set_rand_elem (T&& key, int count)
933+ std::vector <std::string> set_rand_elem (T&& key, int count)
934934 {
935935 static_assert (is_set_, " This API Support Set Request" );
936936 if (client_ == nullptr ) {
@@ -982,7 +982,7 @@ namespace cpp_redis {
982982 }
983983
984984 template <typename T>
985- RESULTS_TYPE set_get_all_member (T&& key)
985+ std::vector <std::string> set_get_all_member (T&& key)
986986 {
987987 static_assert (is_set_, " This API Support Set Request" );
988988 if (client_== nullptr ) {
@@ -1001,7 +1001,7 @@ namespace cpp_redis {
10011001
10021002 // 求集合的交集,如果一个为空,就返回空
10031003 template <typename T,typename ...Args>
1004- RESULTS_TYPE set_sinter (T&&key,Args&&...keys)
1004+ std::vector <std::string> set_sinter (T&&key,Args&&...keys)
10051005 {
10061006 constexpr auto Size = sizeof ...(keys)+1 ;
10071007 static_assert (is_set_, " This API Support Set Request" );
@@ -1036,7 +1036,7 @@ namespace cpp_redis {
10361036 // 求集合的并集合,不存在key就视为空
10371037 // (返回一个集合的全部成员,该集合是所有给定集合的并集)
10381038 template <typename ...Args>
1039- RESULTS_TYPE set_union (Args&&...key)
1039+ std::vector <std::string> set_union (Args&&...key)
10401040 {
10411041 constexpr auto Size = sizeof ...(key);
10421042 static_assert (is_set_, " This API Support Set Request" );
@@ -1075,7 +1075,7 @@ namespace cpp_redis {
10751075 // 返回一个集合的全部成员,该集合是所有给定集合之间的差集。
10761076 // 不存在的 key 被视为空集。
10771077 template <typename ...Args>
1078- RESULTS_TYPE set_diff (Args&&...key)
1078+ std::vector <std::string> set_diff (Args&&...key)
10791079 {
10801080 constexpr auto Size = sizeof ...(key);
10811081 static_assert (is_set_, " This API Support Set Request" );
@@ -1206,7 +1206,7 @@ namespace cpp_redis {
12061206 // with_scores:false不带score返回
12071207 // 递增排序
12081208 template <typename T>
1209- RESULTS_TYPE zset_range (T&& key, int begin, int end, bool with_scores = true )
1209+ std::vector <std::string> zset_range (T&& key, int begin, int end, bool with_scores = true )
12101210 {
12111211 static_assert (is_zset, " This API Support ZSet Request" );
12121212
@@ -1226,7 +1226,7 @@ namespace cpp_redis {
12261226 // 递减排序
12271227 // 字典序的逆序
12281228 template <typename T>
1229- RESULTS_TYPE zset_rerange (T&& key, int begin, int end, bool with_scores = true )
1229+ std::vector <std::string> zset_rerange (T&& key, int begin, int end, bool with_scores = true )
12301230 {
12311231 static_assert (is_zset, " This API Support ZSet Request" );
12321232 if (client_ == nullptr ){
@@ -1243,7 +1243,7 @@ namespace cpp_redis {
12431243
12441244 // 求区间内的score排序
12451245 template <typename T>
1246- RESULTS_TYPE zset_range_score (T&& key, int min, int max,
1246+ std::vector <std::string> zset_range_score (T&& key, int min, int max,
12471247 bool with_scores = true , bool limit = false , int limit_min = 0 , int limit_max = 1 )
12481248 {
12491249 static_assert (is_zset, " This API Support ZSet Request" );
@@ -1264,7 +1264,7 @@ namespace cpp_redis {
12641264
12651265 // 求区间内的score从数据库中逆向取值并排序
12661266 template <typename T>
1267- RESULTS_TYPE zset_revrange_score (T&& key, int max, int min,
1267+ std::vector <std::string> zset_revrange_score (T&& key, int max, int min,
12681268 bool with_scores = true , bool limit = false , int limit_min = 0 , int limit_max = 1 )
12691269 {
12701270 static_assert (is_zset, " This API Support ZSet Request" );
@@ -1388,7 +1388,7 @@ namespace cpp_redis {
13881388 // 因此, 向一个所有成员的分值都相同的有序集合发送命令 ZRANGEBYLEX <zset> -+, 命令将返回有序集合中的所有元素。
13891389
13901390 template <typename T>
1391- RESULTS_TYPE zset_rangebylex (T&& key,std::string&&min,std::string&& max,bool limit=false ,int limit_min=0 ,int limit_max=1 )
1391+ std::vector <std::string> zset_rangebylex (T&& key,std::string&&min,std::string&& max,bool limit=false ,int limit_min=0 ,int limit_max=1 )
13921392 {
13931393 static_assert (is_zset, " This API Support ZSet Request" );
13941394
@@ -1695,7 +1695,7 @@ namespace cpp_redis {
16951695 }
16961696
16971697 template <typename T,typename ...Args>
1698- RESULTS_TYPE hash_mget (T&& key, Args&&...keys)
1698+ std::vector <std::string> hash_mget (T&& key, Args&&...keys)
16991699 {
17001700 const auto Size = sizeof ...(keys) + 1 ;
17011701 static_assert (is_hash, " This API Support hash Request" );
@@ -1715,7 +1715,7 @@ namespace cpp_redis {
17151715
17161716 // 返回所有的keys
17171717 template <typename T>
1718- RESULTS_TYPE hash_keys (T&& key)
1718+ std::vector <std::string> hash_keys (T&& key)
17191719 {
17201720 static_assert (is_hash, " This API Support hash Request" );
17211721 if (client_ == nullptr ) {
@@ -1733,7 +1733,7 @@ namespace cpp_redis {
17331733
17341734 // 返回key中的所有值
17351735 template <typename T>
1736- RESULTS_TYPE hash_vals (T&& key)
1736+ std::vector <std::string> hash_vals (T&& key)
17371737 {
17381738 static_assert (is_hash, " This API Support hash Request" );
17391739 if (client_ == nullptr ) {
@@ -1751,7 +1751,7 @@ namespace cpp_redis {
17511751
17521752 // 返回key中的域和值
17531753 template <typename T>
1754- RESULTS_TYPE hash_get_all (T&& key)
1754+ std::vector <std::string> hash_get_all (T&& key)
17551755 {
17561756 static_assert (is_hash, " This API Support hash Request" );
17571757 if (client_ == nullptr ) {
0 commit comments