@@ -81,7 +81,8 @@ public class DefaultStringRedisConnection implements StringRedisConnection, Deco
81
81
private final RedisSerializer <String > serializer ;
82
82
private Converter <byte [], String > bytesToString = new DeserializingConverter ();
83
83
private Converter <String , byte []> stringToBytes = new SerializingConverter ();
84
- private SetConverter <Tuple , StringTuple > tupleToStringTuple = new SetConverter <>(new TupleConverter ());
84
+ private final TupleConverter tupleConverter = new TupleConverter ();
85
+ private SetConverter <Tuple , StringTuple > tupleToStringTuple = new SetConverter <>(tupleConverter );
85
86
private SetConverter <StringTuple , Tuple > stringTupleToTuple = new SetConverter <>(new StringTupleConverter ());
86
87
private ListConverter <byte [], String > byteListToStringList = new ListConverter <>(bytesToString );
87
88
private MapConverter <byte [], String > byteMapToStringMap = new MapConverter <>(bytesToString );
@@ -2821,6 +2822,126 @@ public Long zLexCount(byte[] key, Range range) {
2821
2822
return delegate .zLexCount (key , range );
2822
2823
}
2823
2824
2825
+ /*
2826
+ * (non-Javadoc)
2827
+ * @see org.springframework.data.redis.connection.RedisZSetCommands#zPopMin(byte[])
2828
+ */
2829
+ @ Nullable
2830
+ @ Override
2831
+ public Tuple zPopMin (byte [] key ) {
2832
+ return delegate .zPopMin (key );
2833
+ }
2834
+
2835
+ /*
2836
+ * (non-Javadoc)
2837
+ * @see org.springframework.data.redis.connection.RedisZSetCommands#zPopMin(String)
2838
+ */
2839
+ @ Nullable
2840
+ @ Override
2841
+ public StringTuple zPopMin (String key ) {
2842
+ return convertAndReturn (delegate .zPopMin (serialize (key )), tupleConverter );
2843
+ }
2844
+
2845
+ /*
2846
+ * (non-Javadoc)
2847
+ * @see org.springframework.data.redis.connection.RedisZSetCommands#zPopMinMin(byte[], count)
2848
+ */
2849
+ @ Nullable
2850
+ @ Override
2851
+ public Set <Tuple > zPopMin (byte [] key , long count ) {
2852
+ return delegate .zPopMin (key , count );
2853
+ }
2854
+
2855
+ /*
2856
+ * (non-Javadoc)
2857
+ * @see org.springframework.data.redis.connection.RedisZSetCommands#zPopMin(String, long)
2858
+ */
2859
+ @ Nullable
2860
+ @ Override
2861
+ public Set <StringTuple > zPopMin (String key , long count ) {
2862
+ return convertAndReturn (delegate .zPopMin (serialize (key ), count ), tupleToStringTuple );
2863
+ }
2864
+
2865
+ /*
2866
+ * (non-Javadoc)
2867
+ * @see org.springframework.data.redis.connection.RedisZSetCommands#bZPopMin(byte[], long, java.util.concurrent.TimeUnit)
2868
+ */
2869
+ @ Nullable
2870
+ @ Override
2871
+ public Tuple bZPopMin (byte [] key , long timeout , TimeUnit unit ) {
2872
+ return delegate .bZPopMin (key , timeout , unit );
2873
+ }
2874
+
2875
+ /*
2876
+ * (non-Javadoc)
2877
+ * @see org.springframework.data.redis.connection.RedisZSetCommands#bZPopMin(String, long, java.util.concurrent.TimeUnit)
2878
+ */
2879
+ @ Nullable
2880
+ @ Override
2881
+ public StringTuple bZPopMin (String key , long timeout , TimeUnit unit ) {
2882
+ return convertAndReturn (delegate .bZPopMin (serialize (key ), timeout , unit ), tupleConverter );
2883
+ }
2884
+
2885
+ /*
2886
+ * (non-Javadoc)
2887
+ * @see org.springframework.data.redis.connection.RedisZSetCommands#zPopMax(byte[])
2888
+ */
2889
+ @ Nullable
2890
+ @ Override
2891
+ public Tuple zPopMax (byte [] key ) {
2892
+ return delegate .zPopMax (key );
2893
+ }
2894
+
2895
+ /*
2896
+ * (non-Javadoc)
2897
+ * @see org.springframework.data.redis.connection.RedisZSetCommands#zPopMax(String)
2898
+ */
2899
+ @ Nullable
2900
+ @ Override
2901
+ public StringTuple zPopMax (String key ) {
2902
+ return convertAndReturn (delegate .zPopMax (serialize (key )), tupleConverter );
2903
+ }
2904
+
2905
+ /*
2906
+ * (non-Javadoc)
2907
+ * @see org.springframework.data.redis.connection.RedisZSetCommands#zPopMax(byte[], long)
2908
+ */
2909
+ @ Nullable
2910
+ @ Override
2911
+ public Set <Tuple > zPopMax (byte [] key , long count ) {
2912
+ return delegate .zPopMax (key , count );
2913
+ }
2914
+
2915
+ /*
2916
+ * (non-Javadoc)
2917
+ * @see org.springframework.data.redis.connection.RedisZSetCommands#zPopMax(String, long)
2918
+ */
2919
+ @ Nullable
2920
+ @ Override
2921
+ public Set <StringTuple > zPopMax (String key , long count ) {
2922
+ return convertAndReturn (delegate .zPopMax (serialize (key ), count ), tupleToStringTuple );
2923
+ }
2924
+
2925
+ /*
2926
+ * (non-Javadoc)
2927
+ * @see org.springframework.data.redis.connection.RedisZSetCommands#bZPopMax(byte[], long, java.util.concurrent.TimeUnit)
2928
+ */
2929
+ @ Nullable
2930
+ @ Override
2931
+ public Tuple bZPopMax (byte [] key , long timeout , TimeUnit unit ) {
2932
+ return delegate .bZPopMax (key , timeout , unit );
2933
+ }
2934
+
2935
+ /*
2936
+ * (non-Javadoc)
2937
+ * @see org.springframework.data.redis.connection.RedisZSetCommands#bZPopMax(String, long, java.util.concurrent.TimeUnit)
2938
+ */
2939
+ @ Nullable
2940
+ @ Override
2941
+ public StringTuple bZPopMax (String key , long timeout , TimeUnit unit ) {
2942
+ return convertAndReturn (delegate .bZPopMax (serialize (key ), timeout , unit ), tupleConverter );
2943
+ }
2944
+
2824
2945
/*
2825
2946
* (non-Javadoc)
2826
2947
* @see org.springframework.data.redis.connection.StringRedisConnection#zIncrBy(java.lang.String, double, java.lang.String)
0 commit comments