@@ -940,12 +940,12 @@ public final CommandObject<KeyValue<String, List<String>>> lmpop(ListDirection d
940
940
.add (direction ).add (COUNT ).add (count ), BuilderFactory .KEYED_STRING_LIST );
941
941
}
942
942
943
- public final CommandObject <KeyValue <String , List <String >>> blmpop (long timeout , ListDirection direction , String ... keys ) {
943
+ public final CommandObject <KeyValue <String , List <String >>> blmpop (double timeout , ListDirection direction , String ... keys ) {
944
944
return new CommandObject <>(commandArguments (BLMPOP ).blocking ().add (timeout )
945
945
.add (keys .length ).keys ((Object []) keys ).add (direction ), BuilderFactory .KEYED_STRING_LIST );
946
946
}
947
947
948
- public final CommandObject <KeyValue <String , List <String >>> blmpop (long timeout , ListDirection direction , int count , String ... keys ) {
948
+ public final CommandObject <KeyValue <String , List <String >>> blmpop (double timeout , ListDirection direction , int count , String ... keys ) {
949
949
return new CommandObject <>(commandArguments (BLMPOP ).blocking ().add (timeout )
950
950
.add (keys .length ).keys ((Object []) keys ).add (direction ).add (COUNT ).add (count ),
951
951
BuilderFactory .KEYED_STRING_LIST );
@@ -961,12 +961,12 @@ public final CommandObject<KeyValue<byte[], List<byte[]>>> lmpop(ListDirection d
961
961
.add (direction ).add (COUNT ).add (count ), BuilderFactory .KEYED_BINARY_LIST );
962
962
}
963
963
964
- public final CommandObject <KeyValue <byte [], List <byte []>>> blmpop (long timeout , ListDirection direction , byte []... keys ) {
964
+ public final CommandObject <KeyValue <byte [], List <byte []>>> blmpop (double timeout , ListDirection direction , byte []... keys ) {
965
965
return new CommandObject <>(commandArguments (BLMPOP ).blocking ().add (timeout )
966
966
.add (keys .length ).keys ((Object []) keys ).add (direction ), BuilderFactory .KEYED_BINARY_LIST );
967
967
}
968
968
969
- public final CommandObject <KeyValue <byte [], List <byte []>>> blmpop (long timeout , ListDirection direction , int count , byte []... keys ) {
969
+ public final CommandObject <KeyValue <byte [], List <byte []>>> blmpop (double timeout , ListDirection direction , int count , byte []... keys ) {
970
970
return new CommandObject <>(commandArguments (BLMPOP ).blocking ().add (timeout )
971
971
.add (keys .length ).keys ((Object []) keys ).add (direction ).add (COUNT ).add (count ),
972
972
BuilderFactory .KEYED_BINARY_LIST );
@@ -1804,51 +1804,53 @@ public final CommandObject<ScanResult<Tuple>> zscan(byte[] key, byte[] cursor, S
1804
1804
return new CommandObject <>(commandArguments (ZSCAN ).key (key ).add (cursor ).addParams (params ), BuilderFactory .ZSCAN_RESPONSE );
1805
1805
}
1806
1806
1807
- public final CommandObject <Set <String >> zdiff (String ... keys ) {
1808
- return new CommandObject <>(commandArguments (ZDIFF ).add (keys .length ).keys ((Object []) keys ), BuilderFactory .STRING_ORDERED_SET );
1807
+ public final CommandObject <List <String >> zdiff (String ... keys ) {
1808
+ return new CommandObject <>(commandArguments (ZDIFF ).add (keys .length ).keys ((Object []) keys ),
1809
+ BuilderFactory .STRING_LIST );
1809
1810
}
1810
1811
1811
- public final CommandObject <Set <Tuple >> zdiffWithScores (String ... keys ) {
1812
+ public final CommandObject <List <Tuple >> zdiffWithScores (String ... keys ) {
1812
1813
return new CommandObject <>(commandArguments (ZDIFF ).add (keys .length ).keys ((Object []) keys )
1813
- .add (WITHSCORES ), getTupleSetBuilder ());
1814
+ .add (WITHSCORES ), getTupleListBuilder ());
1814
1815
}
1815
1816
1816
1817
public final CommandObject <Long > zdiffStore (String dstkey , String ... keys ) {
1817
- return new CommandObject <>(commandArguments (ZDIFFSTORE ).key (dstkey ).add (keys .length ).keys ((Object []) keys ), BuilderFactory .LONG );
1818
+ return new CommandObject <>(commandArguments (ZDIFFSTORE ).key (dstkey )
1819
+ .add (keys .length ).keys ((Object []) keys ), BuilderFactory .LONG );
1818
1820
}
1819
1821
1820
- public final CommandObject <Set <byte []>> zdiff (byte []... keys ) {
1821
- return new CommandObject <>(commandArguments (ZDIFF ).add (keys .length ).keys ((Object []) keys ), BuilderFactory .BINARY_SET );
1822
+ public final CommandObject <List <byte []>> zdiff (byte []... keys ) {
1823
+ return new CommandObject <>(commandArguments (ZDIFF ).add (keys .length ).keys ((Object []) keys ), BuilderFactory .BINARY_LIST );
1822
1824
}
1823
1825
1824
- public final CommandObject <Set <Tuple >> zdiffWithScores (byte []... keys ) {
1826
+ public final CommandObject <List <Tuple >> zdiffWithScores (byte []... keys ) {
1825
1827
return new CommandObject <>(commandArguments (ZDIFF ).add (keys .length ).keys ((Object []) keys )
1826
- .add (WITHSCORES ), getTupleSetBuilder ());
1828
+ .add (WITHSCORES ), getTupleListBuilder ());
1827
1829
}
1828
1830
1829
1831
public final CommandObject <Long > zdiffStore (byte [] dstkey , byte []... keys ) {
1830
1832
return new CommandObject <>(commandArguments (ZDIFFSTORE ).key (dstkey )
1831
1833
.add (keys .length ).keys ((Object []) keys ), BuilderFactory .LONG );
1832
1834
}
1833
1835
1834
- public final CommandObject <Long > zinterstore ( String dstkey , String ... sets ) {
1835
- return new CommandObject <>(commandArguments (ZINTERSTORE ). key ( dstkey )
1836
- .add ( sets . length ). keys (( Object []) sets ) , BuilderFactory .LONG );
1836
+ public final CommandObject <List < String >> zinter ( ZParams params , String ... keys ) {
1837
+ return new CommandObject <>(commandArguments (ZINTER ). add ( keys . length ). keys (( Object []) keys )
1838
+ .addParams ( params ) , BuilderFactory .STRING_LIST );
1837
1839
}
1838
1840
1839
- public final CommandObject <Long > zinterstore ( String dstkey , ZParams params , String ... sets ) {
1840
- return new CommandObject <>(commandArguments (ZINTERSTORE ). key ( dstkey )
1841
- .add ( sets . length ). keys (( Object []) sets ). addParams ( params ), BuilderFactory . LONG );
1841
+ public final CommandObject <List < Tuple >> zinterWithScores ( ZParams params , String ... keys ) {
1842
+ return new CommandObject <>(commandArguments (ZINTER ). add ( keys . length ). keys (( Object []) keys )
1843
+ .addParams ( params ). add ( WITHSCORES ), getTupleListBuilder () );
1842
1844
}
1843
1845
1844
- public final CommandObject <Set < String >> zinter ( ZParams params , String ... keys ) {
1845
- return new CommandObject <>(commandArguments (ZINTER ). add ( keys . length ). keys (( Object []) keys )
1846
- .addParams ( params ) , BuilderFactory .STRING_ORDERED_SET );
1846
+ public final CommandObject <Long > zinterstore ( String dstkey , String ... keys ) {
1847
+ return new CommandObject <>(commandArguments (ZINTERSTORE ). key ( dstkey )
1848
+ .add ( keys . length ). keys (( Object []) keys ) , BuilderFactory .LONG );
1847
1849
}
1848
1850
1849
- public final CommandObject <Set < Tuple >> zinterWithScores ( ZParams params , String ... keys ) {
1850
- return new CommandObject <>(commandArguments (ZINTER ). add ( keys . length ). keys (( Object []) keys )
1851
- .addParams ( params ). add ( WITHSCORES ), getTupleSetBuilder () );
1851
+ public final CommandObject <Long > zinterstore ( String dstkey , ZParams params , String ... keys ) {
1852
+ return new CommandObject <>(commandArguments (ZINTERSTORE ). key ( dstkey )
1853
+ .add ( keys . length ). keys (( Object []) keys ). addParams ( params ), BuilderFactory . LONG );
1852
1854
}
1853
1855
1854
1856
public final CommandObject <Long > zintercard (String ... keys ) {
@@ -1881,14 +1883,14 @@ public final CommandObject<Long> zintercard(long limit, byte[]... keys) {
1881
1883
.keys ((Object []) keys ).add (LIMIT ).add (limit ), BuilderFactory .LONG );
1882
1884
}
1883
1885
1884
- public final CommandObject <Set <byte []>> zinter (ZParams params , byte []... keys ) {
1886
+ public final CommandObject <List <byte []>> zinter (ZParams params , byte []... keys ) {
1885
1887
return new CommandObject <>(commandArguments (ZINTER ).add (keys .length ).keys ((Object []) keys )
1886
- .addParams (params ), BuilderFactory .BINARY_SET );
1888
+ .addParams (params ), BuilderFactory .BINARY_LIST );
1887
1889
}
1888
1890
1889
- public final CommandObject <Set <Tuple >> zinterWithScores (ZParams params , byte []... keys ) {
1891
+ public final CommandObject <List <Tuple >> zinterWithScores (ZParams params , byte []... keys ) {
1890
1892
return new CommandObject <>(commandArguments (ZINTER ).add (keys .length ).keys ((Object []) keys )
1891
- .addParams (params ).add (WITHSCORES ), getTupleSetBuilder ());
1893
+ .addParams (params ).add (WITHSCORES ), getTupleListBuilder ());
1892
1894
}
1893
1895
1894
1896
public final CommandObject <Long > zunionstore (String dstkey , String ... sets ) {
@@ -1901,14 +1903,14 @@ public final CommandObject<Long> zunionstore(String dstkey, ZParams params, Stri
1901
1903
.add (sets .length ).keys ((Object []) sets ).addParams (params ), BuilderFactory .LONG );
1902
1904
}
1903
1905
1904
- public final CommandObject <Set <String >> zunion (ZParams params , String ... keys ) {
1906
+ public final CommandObject <List <String >> zunion (ZParams params , String ... keys ) {
1905
1907
return new CommandObject <>(commandArguments (ZUNION ).add (keys .length ).keys ((Object []) keys )
1906
- .addParams (params ), BuilderFactory .STRING_ORDERED_SET );
1908
+ .addParams (params ), BuilderFactory .STRING_LIST );
1907
1909
}
1908
1910
1909
- public final CommandObject <Set <Tuple >> zunionWithScores (ZParams params , String ... keys ) {
1911
+ public final CommandObject <List <Tuple >> zunionWithScores (ZParams params , String ... keys ) {
1910
1912
return new CommandObject <>(commandArguments (ZUNION ).add (keys .length ).keys ((Object []) keys )
1911
- .addParams (params ).add (WITHSCORES ), getTupleSetBuilder ());
1913
+ .addParams (params ).add (WITHSCORES ), getTupleListBuilder ());
1912
1914
}
1913
1915
1914
1916
public final CommandObject <Long > zunionstore (byte [] dstkey , byte []... sets ) {
@@ -1921,14 +1923,14 @@ public final CommandObject<Long> zunionstore(byte[] dstkey, ZParams params, byte
1921
1923
.add (sets .length ).keys ((Object []) sets ).addParams (params ), BuilderFactory .LONG );
1922
1924
}
1923
1925
1924
- public final CommandObject <Set <byte []>> zunion (ZParams params , byte []... keys ) {
1926
+ public final CommandObject <List <byte []>> zunion (ZParams params , byte []... keys ) {
1925
1927
return new CommandObject <>(commandArguments (ZUNION ).add (keys .length ).keys ((Object []) keys )
1926
- .addParams (params ), BuilderFactory .BINARY_SET );
1928
+ .addParams (params ), BuilderFactory .BINARY_LIST );
1927
1929
}
1928
1930
1929
- public final CommandObject <Set <Tuple >> zunionWithScores (ZParams params , byte []... keys ) {
1931
+ public final CommandObject <List <Tuple >> zunionWithScores (ZParams params , byte []... keys ) {
1930
1932
return new CommandObject <>(commandArguments (ZUNION ).add (keys .length ).keys ((Object []) keys )
1931
- .addParams (params ).add (WITHSCORES ), getTupleSetBuilder ());
1933
+ .addParams (params ).add (WITHSCORES ), getTupleListBuilder ());
1932
1934
}
1933
1935
1934
1936
public final CommandObject <KeyValue <String , List <Tuple >>> zmpop (SortedSetOption option , String ... keys ) {
@@ -1941,12 +1943,12 @@ public final CommandObject<KeyValue<String, List<Tuple>>> zmpop(SortedSetOption
1941
1943
.add (option ).add (COUNT ).add (count ), BuilderFactory .KEYED_TUPLE_LIST );
1942
1944
}
1943
1945
1944
- public final CommandObject <KeyValue <String , List <Tuple >>> bzmpop (long timeout , SortedSetOption option , String ... keys ) {
1946
+ public final CommandObject <KeyValue <String , List <Tuple >>> bzmpop (double timeout , SortedSetOption option , String ... keys ) {
1945
1947
return new CommandObject <>(commandArguments (BZMPOP ).blocking ().add (timeout ).add (keys .length )
1946
1948
.keys ((Object []) keys ).add (option ), BuilderFactory .KEYED_TUPLE_LIST );
1947
1949
}
1948
1950
1949
- public final CommandObject <KeyValue <String , List <Tuple >>> bzmpop (long timeout , SortedSetOption option , int count , String ... keys ) {
1951
+ public final CommandObject <KeyValue <String , List <Tuple >>> bzmpop (double timeout , SortedSetOption option , int count , String ... keys ) {
1950
1952
return new CommandObject <>(commandArguments (BZMPOP ).blocking ().add (timeout ).add (keys .length )
1951
1953
.keys ((Object []) keys ).add (option ).add (COUNT ).add (count ), BuilderFactory .KEYED_TUPLE_LIST );
1952
1954
}
@@ -1961,12 +1963,12 @@ public final CommandObject<KeyValue<byte[], List<Tuple>>> zmpop(SortedSetOption
1961
1963
.add (option ).add (COUNT ).add (count ), BuilderFactory .BINARY_KEYED_TUPLE_LIST );
1962
1964
}
1963
1965
1964
- public final CommandObject <KeyValue <byte [], List <Tuple >>> bzmpop (long timeout , SortedSetOption option , byte []... keys ) {
1966
+ public final CommandObject <KeyValue <byte [], List <Tuple >>> bzmpop (double timeout , SortedSetOption option , byte []... keys ) {
1965
1967
return new CommandObject <>(commandArguments (BZMPOP ).blocking ().add (timeout ).add (keys .length )
1966
1968
.keys ((Object []) keys ).add (option ), BuilderFactory .BINARY_KEYED_TUPLE_LIST );
1967
1969
}
1968
1970
1969
- public final CommandObject <KeyValue <byte [], List <Tuple >>> bzmpop (long timeout , SortedSetOption option , int count , byte []... keys ) {
1971
+ public final CommandObject <KeyValue <byte [], List <Tuple >>> bzmpop (double timeout , SortedSetOption option , int count , byte []... keys ) {
1970
1972
return new CommandObject <>(commandArguments (BZMPOP ).blocking ().add (timeout ).add (keys .length )
1971
1973
.keys ((Object []) keys ).add (option ).add (COUNT ).add (count ), BuilderFactory .BINARY_KEYED_TUPLE_LIST );
1972
1974
}
@@ -3401,6 +3403,15 @@ public final CommandObject<String> jsonSet(String key, Path path, Object pojo, J
3401
3403
getJsonObjectMapper ().toJson (pojo )).addParams (params ), BuilderFactory .STRING );
3402
3404
}
3403
3405
3406
+ public final CommandObject <String > jsonMerge (String key , Path2 path , Object object ) {
3407
+ return new CommandObject <>(commandArguments (JsonCommand .MERGE ).key (key ).add (path ).add (object ), BuilderFactory .STRING );
3408
+ }
3409
+
3410
+ public final CommandObject <String > jsonMerge (String key , Path path , Object pojo ) {
3411
+ return new CommandObject <>(commandArguments (JsonCommand .MERGE ).key (key ).add (path ).add (
3412
+ getJsonObjectMapper ().toJson (pojo )), BuilderFactory .STRING );
3413
+ }
3414
+
3404
3415
public final CommandObject <Object > jsonGet (String key ) {
3405
3416
return new CommandObject <>(commandArguments (JsonCommand .GET ).key (key ), new JsonObjectBuilder <>(Object .class ));
3406
3417
}
0 commit comments