diff --git a/src/main/java/org/springframework/data/redis/core/GeoOperations.java b/src/main/java/org/springframework/data/redis/core/GeoOperations.java index caba07e066..8c97b48d21 100644 --- a/src/main/java/org/springframework/data/redis/core/GeoOperations.java +++ b/src/main/java/org/springframework/data/redis/core/GeoOperations.java @@ -53,7 +53,6 @@ public interface GeoOperations { * @since 2.0 * @see Redis Documentation: GEOADD */ - @Nullable Long add(K key, Point point, M member); /** @@ -65,7 +64,6 @@ public interface GeoOperations { * @since 2.0 * @see Redis Documentation: GEOADD */ - @Nullable Long add(K key, GeoLocation location); /** @@ -77,7 +75,6 @@ public interface GeoOperations { * @since 2.0 * @see Redis Documentation: GEOADD */ - @Nullable Long add(K key, Map memberCoordinateMap); /** @@ -89,7 +86,6 @@ public interface GeoOperations { * @since 2.0 * @see Redis Documentation: GEOADD */ - @Nullable Long add(K key, Iterable> locations); /** @@ -128,7 +124,6 @@ public interface GeoOperations { * @since 2.0 * @see Redis Documentation: GEOHASH */ - @Nullable List hash(K key, M... members); /** @@ -140,7 +135,6 @@ public interface GeoOperations { * @since 2.0 * @see Redis Documentation: GEOPOS */ - @Nullable List position(K key, M... members); /** @@ -152,7 +146,6 @@ public interface GeoOperations { * @since 2.0 * @see Redis Documentation: GEORADIUS */ - @Nullable GeoResults> radius(K key, Circle within); /** @@ -165,7 +158,6 @@ public interface GeoOperations { * @since 2.0 * @see Redis Documentation: GEORADIUS */ - @Nullable GeoResults> radius(K key, Circle within, GeoRadiusCommandArgs args); /** @@ -179,7 +171,6 @@ public interface GeoOperations { * @since 2.0 * @see Redis Documentation: GEORADIUSBYMEMBER */ - @Nullable GeoResults> radius(K key, M member, double radius); /** @@ -193,7 +184,6 @@ public interface GeoOperations { * @since 2.0 * @see Redis Documentation: GEORADIUSBYMEMBER */ - @Nullable GeoResults> radius(K key, M member, Distance distance); /** @@ -208,7 +198,6 @@ public interface GeoOperations { * @since 2.0 * @see Redis Documentation: GEORADIUSBYMEMBER */ - @Nullable GeoResults> radius(K key, M member, Distance distance, GeoRadiusCommandArgs args); /** @@ -219,7 +208,6 @@ public interface GeoOperations { * @return Number of elements removed. {@literal null} when used in pipeline / transaction. * @since 2.0 */ - @Nullable Long remove(K key, M... members); /** @@ -231,7 +219,6 @@ public interface GeoOperations { * @since 2.6 * @see Redis Documentation: GEOSEARCH */ - @Nullable default GeoResults> search(K key, Circle within) { return search(key, GeoReference.fromCircle(within), GeoShape.byRadius(within.getRadius()), GeoSearchCommandArgs.newGeoSearchArgs()); @@ -248,7 +235,6 @@ default GeoResults> search(K key, Circle within) { * @since 2.6 * @see Redis Documentation: GEOSEARCH */ - @Nullable default GeoResults> search(K key, GeoReference reference, Distance radius) { return search(key, reference, radius, GeoSearchCommandArgs.newGeoSearchArgs()); } @@ -265,7 +251,6 @@ default GeoResults> search(K key, GeoReference reference, Dist * @since 2.6 * @see Redis Documentation: GEOSEARCH */ - @Nullable default GeoResults> search(K key, GeoReference reference, Distance radius, GeoSearchCommandArgs args) { return search(key, reference, GeoShape.byRadius(radius), args); @@ -282,7 +267,6 @@ default GeoResults> search(K key, GeoReference reference, Dist * @since 2.6 * @see Redis Documentation: GEOSEARCH */ - @Nullable default GeoResults> search(K key, GeoReference reference, BoundingBox boundingBox) { return search(key, reference, boundingBox, GeoSearchCommandArgs.newGeoSearchArgs()); @@ -300,7 +284,6 @@ default GeoResults> search(K key, GeoReference reference, * @since 2.6 * @see Redis Documentation: GEOSEARCH */ - @Nullable default GeoResults> search(K key, GeoReference reference, BoundingBox boundingBox, GeoSearchCommandArgs args) { return search(key, reference, GeoShape.byBox(boundingBox), args); @@ -318,7 +301,6 @@ default GeoResults> search(K key, GeoReference reference, Boun * @since 2.6 * @see Redis Documentation: GEOSEARCH */ - @Nullable GeoResults> search(K key, GeoReference reference, GeoShape geoPredicate, GeoSearchCommandArgs args); @@ -331,7 +313,6 @@ GeoResults> search(K key, GeoReference reference, * @since 2.6 * @see Redis Documentation: GEOSEARCHSTORE */ - @Nullable default Long searchAndStore(K key, K destKey, Circle within) { return searchAndStore(key, destKey, GeoReference.fromCircle(within), GeoShape.byRadius(within.getRadius()), GeoSearchStoreCommandArgs.newGeoSearchStoreArgs()); @@ -348,7 +329,6 @@ default Long searchAndStore(K key, K destKey, Circle within) { * @since 2.6 * @see Redis Documentation: GEOSEARCHSTORE */ - @Nullable default Long searchAndStore(K key, K destKey, GeoReference reference, Distance radius) { return searchAndStore(key, destKey, reference, radius, GeoSearchStoreCommandArgs.newGeoSearchStoreArgs()); } @@ -365,7 +345,6 @@ default Long searchAndStore(K key, K destKey, GeoReference reference, Distanc * @since 2.6 * @see Redis Documentation: GEOSEARCHSTORE */ - @Nullable default Long searchAndStore(K key, K destKey, GeoReference reference, Distance radius, GeoSearchStoreCommandArgs args) { return searchAndStore(key, destKey, reference, GeoShape.byRadius(radius), args); @@ -382,7 +361,6 @@ default Long searchAndStore(K key, K destKey, GeoReference reference, Distanc * @since 2.6 * @see Redis Documentation: GEOSEARCHSTORE */ - @Nullable default Long searchAndStore(K key, K destKey, GeoReference reference, BoundingBox boundingBox) { return searchAndStore(key, destKey, reference, boundingBox, GeoSearchStoreCommandArgs.newGeoSearchStoreArgs()); } @@ -399,7 +377,6 @@ default Long searchAndStore(K key, K destKey, GeoReference reference, Boundin * @since 2.6 * @see Redis Documentation: GEOSEARCHSTORE */ - @Nullable default Long searchAndStore(K key, K destKey, GeoReference reference, BoundingBox boundingBox, GeoSearchStoreCommandArgs args) { return searchAndStore(key, destKey, reference, GeoShape.byBox(boundingBox), args); @@ -417,7 +394,6 @@ default Long searchAndStore(K key, K destKey, GeoReference reference, Boundin * @since 2.6 * @see Redis Documentation: GEOSEARCHSTORE */ - @Nullable Long searchAndStore(K key, K destKey, GeoReference reference, GeoShape geoPredicate, GeoSearchStoreCommandArgs args); diff --git a/src/main/java/org/springframework/data/redis/core/HashOperations.java b/src/main/java/org/springframework/data/redis/core/HashOperations.java index 432ecbfe2f..e8b1b19419 100644 --- a/src/main/java/org/springframework/data/redis/core/HashOperations.java +++ b/src/main/java/org/springframework/data/redis/core/HashOperations.java @@ -123,7 +123,6 @@ public interface HashOperations { * @since 2.6 * @see Redis Documentation: HRANDFIELD */ - @Nullable List randomKeys(H key, long count); /** @@ -135,7 +134,6 @@ public interface HashOperations { * @since 2.6 * @see Redis Documentation: HRANDFIELD */ - @Nullable Map randomEntries(H key, long count); /** @@ -154,8 +152,8 @@ public interface HashOperations { * @param hashKey must not be {@literal null}. * @return {@literal null} when used in pipeline / transaction. * @since 2.1 + * @see Redis Documentation: HSTRLEN */ - @Nullable Long lengthOfValue(H key, HK hashKey); /** diff --git a/src/main/java/org/springframework/data/redis/core/ListOperations.java b/src/main/java/org/springframework/data/redis/core/ListOperations.java index b838754b50..e44a568bfd 100644 --- a/src/main/java/org/springframework/data/redis/core/ListOperations.java +++ b/src/main/java/org/springframework/data/redis/core/ListOperations.java @@ -46,7 +46,6 @@ public interface ListOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: LRANGE */ - @Nullable List range(K key, long start, long end); /** @@ -66,7 +65,6 @@ public interface ListOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: LLEN */ - @Nullable Long size(K key); /** @@ -77,7 +75,6 @@ public interface ListOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: LPUSH */ - @Nullable Long leftPush(K key, V value); /** @@ -88,7 +85,6 @@ public interface ListOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: LPUSH */ - @Nullable Long leftPushAll(K key, V... values); /** @@ -100,7 +96,6 @@ public interface ListOperations { * @since 1.5 * @see Redis Documentation: LPUSH */ - @Nullable Long leftPushAll(K key, Collection values); /** @@ -111,7 +106,6 @@ public interface ListOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: LPUSHX */ - @Nullable Long leftPushIfPresent(K key, V value); /** @@ -123,7 +117,6 @@ public interface ListOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: LINSERT */ - @Nullable Long leftPush(K key, V pivot, V value); /** @@ -134,7 +127,6 @@ public interface ListOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: RPUSH */ - @Nullable Long rightPush(K key, V value); /** @@ -145,7 +137,6 @@ public interface ListOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: RPUSH */ - @Nullable Long rightPushAll(K key, V... values); /** @@ -157,7 +148,6 @@ public interface ListOperations { * @since 1.5 * @see Redis Documentation: RPUSH */ - @Nullable Long rightPushAll(K key, Collection values); /** @@ -168,7 +158,6 @@ public interface ListOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: RPUSHX */ - @Nullable Long rightPushIfPresent(K key, V value); /** @@ -180,7 +169,6 @@ public interface ListOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: LINSERT */ - @Nullable Long rightPush(K key, V pivot, V value); /** @@ -364,7 +352,6 @@ default V move(K sourceKey, Direction from, K destinationKey, Direction to, Dura * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: LREM */ - @Nullable Long remove(K key, long count, Object value); /** @@ -401,7 +388,6 @@ default V move(K sourceKey, Direction from, K destinationKey, Direction to, Dura * @since 2.4 * @see Redis Documentation: LPOS */ - @Nullable Long lastIndexOf(K key, V value); /** @@ -478,7 +464,6 @@ default V leftPop(K key, Duration timeout) { * @see Redis Documentation: RPOP * @since 2.6 */ - @Nullable List rightPop(K key, long count); /** diff --git a/src/main/java/org/springframework/data/redis/core/SetOperations.java b/src/main/java/org/springframework/data/redis/core/SetOperations.java index 4b155aaa5a..79f0222e1f 100644 --- a/src/main/java/org/springframework/data/redis/core/SetOperations.java +++ b/src/main/java/org/springframework/data/redis/core/SetOperations.java @@ -40,7 +40,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SADD */ - @Nullable Long add(K key, V... values); /** @@ -51,7 +50,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SREM */ - @Nullable Long remove(K key, Object... values); /** @@ -73,7 +71,6 @@ public interface SetOperations { * @see Redis Documentation: SPOP * @since 2.0 */ - @Nullable List pop(K key, long count); /** @@ -85,7 +82,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SMOVE */ - @Nullable Boolean move(K key, V value, K destKey); /** @@ -95,7 +91,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SCARD */ - @Nullable Long size(K key); /** @@ -106,7 +101,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SISMEMBER */ - @Nullable Boolean isMember(K key, Object o); /** @@ -118,7 +112,6 @@ public interface SetOperations { * @since 2.6 * @see Redis Documentation: SMISMEMBER */ - @Nullable Map isMember(K key, Object... objects); /** @@ -129,7 +122,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SINTER */ - @Nullable Set intersect(K key, K otherKey); /** @@ -140,7 +132,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SINTER */ - @Nullable Set intersect(K key, Collection otherKeys); /** @@ -151,7 +142,6 @@ public interface SetOperations { * @see Redis Documentation: SINTER * @since 2.2 */ - @Nullable Set intersect(Collection keys); /** @@ -163,7 +153,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SINTERSTORE */ - @Nullable Long intersectAndStore(K key, K otherKey, K destKey); /** @@ -175,7 +164,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SINTERSTORE */ - @Nullable Long intersectAndStore(K key, Collection otherKeys, K destKey); /** @@ -187,7 +175,6 @@ public interface SetOperations { * @see Redis Documentation: SINTERSTORE * @since 2.2 */ - @Nullable Long intersectAndStore(Collection keys, K destKey); /** @@ -198,7 +185,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SUNION */ - @Nullable Set union(K key, K otherKey); /** @@ -209,7 +195,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SUNION */ - @Nullable Set union(K key, Collection otherKeys); /** @@ -220,7 +205,6 @@ public interface SetOperations { * @see Redis Documentation: SUNION * @since 2.2 */ - @Nullable Set union(Collection keys); /** @@ -232,7 +216,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SUNIONSTORE */ - @Nullable Long unionAndStore(K key, K otherKey, K destKey); /** @@ -244,7 +227,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SUNIONSTORE */ - @Nullable Long unionAndStore(K key, Collection otherKeys, K destKey); /** @@ -256,7 +238,6 @@ public interface SetOperations { * @see Redis Documentation: SUNIONSTORE * @since 2.2 */ - @Nullable Long unionAndStore(Collection keys, K destKey); /** @@ -267,7 +248,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SDIFF */ - @Nullable Set difference(K key, K otherKey); /** @@ -278,7 +258,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SDIFF */ - @Nullable Set difference(K key, Collection otherKeys); /** @@ -289,7 +268,6 @@ public interface SetOperations { * @see Redis Documentation: SDIFF * @since 2.2 */ - @Nullable Set difference(Collection keys); /** @@ -301,7 +279,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SDIFFSTORE */ - @Nullable Long differenceAndStore(K key, K otherKey, K destKey); /** @@ -313,7 +290,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SDIFFSTORE */ - @Nullable Long differenceAndStore(K key, Collection otherKeys, K destKey); /** @@ -325,7 +301,6 @@ public interface SetOperations { * @see Redis Documentation: SDIFFSTORE * @since 2.2 */ - @Nullable Long differenceAndStore(Collection keys, K destKey); /** @@ -335,7 +310,6 @@ public interface SetOperations { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SMEMBERS */ - @Nullable Set members(K key); /** @@ -356,7 +330,6 @@ public interface SetOperations { * @throws IllegalArgumentException if count is negative. * @see Redis Documentation: SRANDMEMBER */ - @Nullable Set distinctRandomMembers(K key, long count); /** @@ -368,7 +341,6 @@ public interface SetOperations { * @throws IllegalArgumentException if count is negative. * @see Redis Documentation: SRANDMEMBER */ - @Nullable List randomMembers(K key, long count); /** diff --git a/src/main/java/org/springframework/data/redis/core/StreamOperations.java b/src/main/java/org/springframework/data/redis/core/StreamOperations.java index 0a258aa8a7..df30aec1e0 100644 --- a/src/main/java/org/springframework/data/redis/core/StreamOperations.java +++ b/src/main/java/org/springframework/data/redis/core/StreamOperations.java @@ -66,7 +66,6 @@ public interface StreamOperations extends HashMapperProvider * @return length of acknowledged records. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XACK */ - @Nullable Long acknowledge(K key, String group, String... recordIds); /** @@ -78,7 +77,6 @@ public interface StreamOperations extends HashMapperProvider * @return length of acknowledged records. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XACK */ - @Nullable default Long acknowledge(K key, String group, RecordId... recordIds) { return acknowledge(key, group, Arrays.stream(recordIds).map(RecordId::getValue).toArray(String[]::new)); } @@ -104,7 +102,6 @@ default Long acknowledge(String group, Record record) { * @see Redis Documentation: XADD */ @SuppressWarnings("unchecked") - @Nullable default RecordId add(K key, Map content) { return add(StreamRecords.newRecord().in(key).ofMap(content)); } @@ -116,7 +113,6 @@ default RecordId add(K key, Map content) { * @return the record Id. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XADD */ - @Nullable @SuppressWarnings("unchecked") default RecordId add(MapRecord record) { return add((Record) record); @@ -131,7 +127,6 @@ default RecordId add(MapRecord record) { * @see ObjectRecord */ @SuppressWarnings("unchecked") - @Nullable RecordId add(Record record); /** @@ -185,7 +180,6 @@ default List> claim(K key, String consumerGroup, String new * @return number of removed entries. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XDEL */ - @Nullable default Long delete(K key, String... recordIds) { return delete(key, Arrays.stream(recordIds).map(RecordId::of).toArray(RecordId[]::new)); } @@ -196,7 +190,6 @@ default Long delete(K key, String... recordIds) { * @param record must not be {@literal null}. * @return he {@link Mono} emitting the number of removed records. */ - @Nullable default Long delete(Record record) { return delete(record.getStream(), record.getId()); } @@ -210,7 +203,6 @@ default Long delete(Record record) { * @return the {@link Mono} emitting the number of removed records. * @see Redis Documentation: XDEL */ - @Nullable Long delete(K key, RecordId... recordIds); /** @@ -233,7 +225,6 @@ default String createGroup(K key, String group) { * @param group name of the consumer group. * @return {@literal OK} if successful. {@literal null} when used in pipeline / transaction. */ - @Nullable String createGroup(K key, ReadOffset readOffset, String group); /** @@ -243,7 +234,6 @@ default String createGroup(K key, String group) { * @param consumer consumer identified by group name and consumer key. * @return {@literal true} if successful. {@literal null} when used in pipeline / transaction. */ - @Nullable Boolean deleteConsumer(K key, Consumer consumer); /** @@ -253,7 +243,6 @@ default String createGroup(K key, String group) { * @param group name of the consumer group. * @return {@literal true} if successful. {@literal null} when used in pipeline / transaction. */ - @Nullable Boolean destroyGroup(K key, String group); /** @@ -296,7 +285,6 @@ default String createGroup(K key, String group) { * @see Redis Documentation: xpending * @since 2.3 */ - @Nullable PendingMessagesSummary pending(K key, String group); /** @@ -348,7 +336,6 @@ default PendingMessages pending(K key, Consumer consumer) { * @return length of the stream. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XLEN */ - @Nullable Long size(K key); /** @@ -359,7 +346,6 @@ default PendingMessages pending(K key, Consumer consumer) { * @return list with members of the resulting stream. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XRANGE */ - @Nullable default List> range(K key, Range range) { return range(key, range, Limit.unlimited()); } @@ -373,7 +359,6 @@ default List> range(K key, Range range) { * @return list with members of the resulting stream. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XRANGE */ - @Nullable List> range(K key, Range range, Limit limit); /** @@ -413,7 +398,6 @@ default List> range(Class targetType, K key, RangeRedis Documentation: XREAD */ - @Nullable default List> read(StreamOffset... streams) { return read(StreamReadOptions.empty(), streams); } @@ -438,7 +422,6 @@ default List> read(Class targetType, StreamOffset.. * @return list with members of the resulting stream. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XREAD */ - @Nullable List> read(StreamReadOptions readOptions, StreamOffset... streams); /** @@ -450,7 +433,6 @@ default List> read(Class targetType, StreamOffset.. * @return list with members of the resulting stream. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XREAD */ - @Nullable default List> read(Class targetType, StreamReadOptions readOptions, StreamOffset... streams) { @@ -467,7 +449,6 @@ default List> read(Class targetType, StreamReadOptions * @return list with members of the resulting stream. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XREADGROUP */ - @Nullable default List> read(Consumer consumer, StreamOffset... streams) { return read(consumer, StreamReadOptions.empty(), streams); } @@ -481,7 +462,6 @@ default List> read(Consumer consumer, StreamOffset... st * @return list with members of the resulting stream. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XREADGROUP */ - @Nullable default List> read(Class targetType, Consumer consumer, StreamOffset... streams) { return read(targetType, consumer, StreamReadOptions.empty(), streams); } @@ -495,7 +475,6 @@ default List> read(Class targetType, Consumer consumer * @return list with members of the resulting stream. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XREADGROUP */ - @Nullable List> read(Consumer consumer, StreamReadOptions readOptions, StreamOffset... streams); /** @@ -508,7 +487,6 @@ default List> read(Class targetType, Consumer consumer * @return list with members of the resulting stream. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XREADGROUP */ - @Nullable default List> read(Class targetType, Consumer consumer, StreamReadOptions readOptions, StreamOffset... streams) { @@ -525,7 +503,6 @@ default List> read(Class targetType, Consumer consumer * @return list with members of the resulting stream. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XREVRANGE */ - @Nullable default List> reverseRange(K key, Range range) { return reverseRange(key, range, Limit.unlimited()); } @@ -539,7 +516,6 @@ default List> reverseRange(K key, Range range) { * @return list with members of the resulting stream. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XREVRANGE */ - @Nullable List> reverseRange(K key, Range range, Limit limit); /** @@ -581,7 +557,6 @@ default List> reverseRange(Class targetType, K key, Ra * @return number of removed entries. {@literal null} when used in pipeline / transaction. * @see Redis Documentation: XTRIM */ - @Nullable Long trim(K key, long count); /** @@ -594,7 +569,6 @@ default List> reverseRange(Class targetType, K key, Ra * @since 2.4 * @see Redis Documentation: XTRIM */ - @Nullable Long trim(K key, long count, boolean approximateTrimming); /** @@ -631,7 +605,6 @@ default ObjectRecord map(MapRecord record, Class targetT * @return the mapped {@link ObjectRecord object records}. * @since 2.x */ - @Nullable default List> map(@Nullable List> records, Class targetType) { Assert.notNull(records, "Records must not be null"); diff --git a/src/main/java/org/springframework/data/redis/core/ValueOperations.java b/src/main/java/org/springframework/data/redis/core/ValueOperations.java index edd350457b..d47228c788 100644 --- a/src/main/java/org/springframework/data/redis/core/ValueOperations.java +++ b/src/main/java/org/springframework/data/redis/core/ValueOperations.java @@ -84,7 +84,6 @@ default void set(K key, V value, Duration timeout) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: SETNX */ - @Nullable Boolean setIfAbsent(K key, V value); /** @@ -98,7 +97,6 @@ default void set(K key, V value, Duration timeout) { * @since 2.1 * @see Redis Documentation: SET */ - @Nullable Boolean setIfAbsent(K key, V value, long timeout, TimeUnit unit); /** @@ -112,7 +110,6 @@ default void set(K key, V value, Duration timeout) { * @see Redis Documentation: SET * @since 2.1 */ - @Nullable default Boolean setIfAbsent(K key, V value, Duration timeout) { Assert.notNull(timeout, "Timeout must not be null"); @@ -134,7 +131,6 @@ default Boolean setIfAbsent(K key, V value, Duration timeout) { * @see Redis Documentation: SET * @since 2.1 */ - @Nullable Boolean setIfPresent(K key, V value); /** @@ -149,7 +145,6 @@ default Boolean setIfAbsent(K key, V value, Duration timeout) { * @see Redis Documentation: SET * @since 2.1 */ - @Nullable Boolean setIfPresent(K key, V value, long timeout, TimeUnit unit); /** @@ -163,7 +158,6 @@ default Boolean setIfAbsent(K key, V value, Duration timeout) { * @see Redis Documentation: SET * @since 2.1 */ - @Nullable default Boolean setIfPresent(K key, V value, Duration timeout) { Assert.notNull(timeout, "Timeout must not be null"); @@ -191,7 +185,6 @@ default Boolean setIfPresent(K key, V value, Duration timeout) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: MSETNX */ - @Nullable Boolean multiSetIfAbsent(Map map); /** @@ -201,7 +194,6 @@ default Boolean setIfPresent(K key, V value, Duration timeout) { * @return {@literal null} when key does not exist or used in pipeline / transaction. * @see Redis Documentation: GET */ - @Nullable V get(Object key); /** @@ -270,7 +262,6 @@ default Boolean setIfPresent(K key, V value, Duration timeout) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: MGET */ - @Nullable List multiGet(Collection keys); /** @@ -281,7 +272,6 @@ default Boolean setIfPresent(K key, V value, Duration timeout) { * @since 2.1 * @see Redis Documentation: INCR */ - @Nullable Long increment(K key); /** @@ -292,7 +282,6 @@ default Boolean setIfPresent(K key, V value, Duration timeout) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: INCRBY */ - @Nullable Long increment(K key, long delta); /** @@ -303,7 +292,6 @@ default Boolean setIfPresent(K key, V value, Duration timeout) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: INCRBYFLOAT */ - @Nullable Double increment(K key, double delta); /** @@ -314,7 +302,6 @@ default Boolean setIfPresent(K key, V value, Duration timeout) { * @since 2.1 * @see Redis Documentation: DECR */ - @Nullable Long decrement(K key); /** @@ -326,7 +313,6 @@ default Boolean setIfPresent(K key, V value, Duration timeout) { * @since 2.1 * @see Redis Documentation: DECRBY */ - @Nullable Long decrement(K key, long delta); /** @@ -337,7 +323,6 @@ default Boolean setIfPresent(K key, V value, Duration timeout) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: APPEND */ - @Nullable Integer append(K key, String value); /** @@ -369,7 +354,6 @@ default Boolean setIfPresent(K key, V value, Duration timeout) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: STRLEN */ - @Nullable Long size(K key); /** @@ -382,7 +366,6 @@ default Boolean setIfPresent(K key, V value, Duration timeout) { * @since 1.5 * @see Redis Documentation: SETBIT */ - @Nullable Boolean setBit(K key, long offset, boolean value); /** @@ -394,7 +377,6 @@ default Boolean setIfPresent(K key, V value, Duration timeout) { * @since 1.5 * @see Redis Documentation: GETBIT */ - @Nullable Boolean getBit(K key, long offset); /** @@ -407,7 +389,6 @@ default Boolean setIfPresent(K key, V value, Duration timeout) { * @since 2.1 * @see Redis Documentation: BITFIELD */ - @Nullable List bitField(K key, BitFieldSubCommands subCommands); RedisOperations getOperations(); diff --git a/src/main/java/org/springframework/data/redis/core/ZSetOperations.java b/src/main/java/org/springframework/data/redis/core/ZSetOperations.java index 80c8f6812e..f79f1c24bd 100644 --- a/src/main/java/org/springframework/data/redis/core/ZSetOperations.java +++ b/src/main/java/org/springframework/data/redis/core/ZSetOperations.java @@ -77,7 +77,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZADD */ - @Nullable Boolean add(K key, V value, double score); /** @@ -90,7 +89,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @since 2.5 * @see Redis Documentation: ZADD NX */ - @Nullable Boolean addIfAbsent(K key, V value, double score); /** @@ -101,7 +99,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZADD */ - @Nullable Long add(K key, Set> tuples); /** @@ -113,7 +110,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @since 2.5 * @see Redis Documentation: ZADD NX */ - @Nullable Long addIfAbsent(K key, Set> tuples); /** @@ -124,7 +120,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZREM */ - @Nullable Long remove(K key, Object... values); /** @@ -136,7 +131,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZINCRBY */ - @Nullable Double incrementScore(K key, V value, double delta); /** @@ -147,6 +141,7 @@ static TypedTuple of(V value, @Nullable Double score) { * @since 2.6 * @see Redis Documentation: ZRANDMEMBER */ + @Nullable V randomMember(K key); /** @@ -159,7 +154,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @since 2.6 * @see Redis Documentation: ZRANDMEMBER */ - @Nullable Set distinctRandomMembers(K key, long count); /** @@ -172,7 +166,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @since 2.6 * @see Redis Documentation: ZRANDMEMBER */ - @Nullable List randomMembers(K key, long count); /** @@ -195,7 +188,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @since 2.6 * @see Redis Documentation: ZRANDMEMBER */ - @Nullable Set> distinctRandomMembersWithScore(K key, long count); /** @@ -208,7 +200,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @since 2.6 * @see Redis Documentation: ZRANDMEMBER */ - @Nullable List> randomMembersWithScore(K key, long count); /** @@ -242,7 +233,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZRANGE */ - @Nullable Set range(K key, long start, long end); /** @@ -254,7 +244,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZRANGE */ - @Nullable Set> rangeWithScores(K key, long start, long end); /** @@ -266,7 +255,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZRANGEBYSCORE */ - @Nullable Set rangeByScore(K key, double min, double max); /** @@ -278,7 +266,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZRANGEBYSCORE */ - @Nullable Set> rangeByScoreWithScores(K key, double min, double max); /** @@ -293,7 +280,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZRANGEBYSCORE */ - @Nullable Set rangeByScore(K key, double min, double max, long offset, long count); /** @@ -308,7 +294,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZRANGEBYSCORE */ - @Nullable Set> rangeByScoreWithScores(K key, double min, double max, long offset, long count); /** @@ -320,7 +305,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZREVRANGE */ - @Nullable Set reverseRange(K key, long start, long end); /** @@ -332,7 +316,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZREVRANGE */ - @Nullable Set> reverseRangeWithScores(K key, long start, long end); /** @@ -344,7 +327,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZREVRANGEBYSCORE */ - @Nullable Set reverseRangeByScore(K key, double min, double max); /** @@ -357,7 +339,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZREVRANGEBYSCORE */ - @Nullable Set> reverseRangeByScoreWithScores(K key, double min, double max); /** @@ -372,7 +353,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZREVRANGEBYSCORE */ - @Nullable Set reverseRangeByScore(K key, double min, double max, long offset, long count); /** @@ -387,7 +367,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZREVRANGEBYSCORE */ - @Nullable Set> reverseRangeByScoreWithScores(K key, double min, double max, long offset, long count); /** @@ -399,7 +378,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZCOUNT */ - @Nullable Long count(K key, double min, double max); /** @@ -413,7 +391,6 @@ static TypedTuple of(V value, @Nullable Double score) { * @see Redis Documentation: ZLEXCOUNT * @deprecated since 3.0. Please use #lexCount(Range) instead. */ - @Nullable @Deprecated(since = "3.0", forRemoval = true) default Long lexCount(K key, org.springframework.data.redis.connection.RedisZSetCommands.Range range) { return lexCount(key, range.toRange()); @@ -429,7 +406,6 @@ default Long lexCount(K key, org.springframework.data.redis.connection.RedisZSet * @since 3.0 * @see Redis Documentation: ZLEXCOUNT */ - @Nullable Long lexCount(K key, Range range); /** @@ -452,7 +428,6 @@ default Long lexCount(K key, org.springframework.data.redis.connection.RedisZSet * @see Redis Documentation: ZPOPMIN * @since 2.6 */ - @Nullable Set> popMin(K key, long count); /** @@ -509,7 +484,6 @@ default TypedTuple popMin(K key, Duration timeout) { * @see Redis Documentation: ZPOPMAX * @since 2.6 */ - @Nullable Set> popMax(K key, long count); /** @@ -554,7 +528,6 @@ default TypedTuple popMax(K key, Duration timeout) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZCARD */ - @Nullable Long size(K key); /** @@ -565,7 +538,6 @@ default TypedTuple popMax(K key, Duration timeout) { * @since 1.3 * @see Redis Documentation: ZCARD */ - @Nullable Long zCard(K key); /** @@ -588,7 +560,6 @@ default TypedTuple popMax(K key, Duration timeout) { * @see Redis Documentation: ZMSCORE * @since 2.6 */ - @Nullable List score(K key, Object... o); /** @@ -600,7 +571,6 @@ default TypedTuple popMax(K key, Duration timeout) { * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZREMRANGEBYRANK */ - @Nullable Long removeRange(K key, long start, long end); /** @@ -613,7 +583,6 @@ default TypedTuple popMax(K key, Duration timeout) { * @see Redis Documentation: ZREMRANGEBYLEX * @deprecated since 3.0. Please use {@link #removeRangeByLex(Object, Range)} instead; */ - @Nullable @Deprecated(since = "3.0", forRemoval = true) default Long removeRangeByLex(K key, org.springframework.data.redis.connection.RedisZSetCommands.Range range) { return removeRangeByLex(key, range.toRange()); @@ -628,7 +597,6 @@ default Long removeRangeByLex(K key, org.springframework.data.redis.connection.R * @since 3.0 * @see Redis Documentation: ZREMRANGEBYLEX */ - @Nullable Long removeRangeByLex(K key, Range range); /** @@ -640,7 +608,6 @@ default Long removeRangeByLex(K key, org.springframework.data.redis.connection.R * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZREMRANGEBYSCORE */ - @Nullable Long removeRangeByScore(K key, double min, double max); /** @@ -652,7 +619,6 @@ default Long removeRangeByLex(K key, org.springframework.data.redis.connection.R * @since 2.6 * @see Redis Documentation: ZDIFF */ - @Nullable default Set difference(K key, K otherKey) { return difference(key, Collections.singleton(otherKey)); } @@ -666,7 +632,6 @@ default Set difference(K key, K otherKey) { * @since 2.6 * @see Redis Documentation: ZDIFF */ - @Nullable Set difference(K key, Collection otherKeys); /** @@ -678,7 +643,6 @@ default Set difference(K key, K otherKey) { * @since 2.6 * @see Redis Documentation: ZDIFF */ - @Nullable default Set> differenceWithScores(K key, K otherKey) { return differenceWithScores(key, Collections.singleton(otherKey)); } @@ -692,7 +656,6 @@ default Set> differenceWithScores(K key, K otherKey) { * @since 2.6 * @see Redis Documentation: ZDIFF */ - @Nullable Set> differenceWithScores(K key, Collection otherKeys); /** @@ -717,7 +680,6 @@ default Set> differenceWithScores(K key, K otherKey) { * @since 2.6 * @see Redis Documentation: ZINTER */ - @Nullable default Set intersect(K key, K otherKey) { return intersect(key, Collections.singleton(otherKey)); } @@ -731,7 +693,6 @@ default Set intersect(K key, K otherKey) { * @since 2.6 * @see Redis Documentation: ZINTER */ - @Nullable Set intersect(K key, Collection otherKeys); /** @@ -743,7 +704,6 @@ default Set intersect(K key, K otherKey) { * @since 2.6 * @see Redis Documentation: ZINTER */ - @Nullable default Set> intersectWithScores(K key, K otherKey) { return intersectWithScores(key, Collections.singleton(otherKey)); } @@ -757,7 +717,6 @@ default Set> intersectWithScores(K key, K otherKey) { * @since 2.6 * @see Redis Documentation: ZINTER */ - @Nullable Set> intersectWithScores(K key, Collection otherKeys); /** @@ -770,7 +729,6 @@ default Set> intersectWithScores(K key, K otherKey) { * @since 2.6 * @see Redis Documentation: ZINTER */ - @Nullable default Set> intersectWithScores(K key, Collection otherKeys, Aggregate aggregate) { return intersectWithScores(key, otherKeys, aggregate, Weights.fromSetCount(1 + otherKeys.size())); } @@ -786,7 +744,6 @@ default Set> intersectWithScores(K key, Collection otherKeys, A * @since 2.6 * @see Redis Documentation: ZINTER */ - @Nullable Set> intersectWithScores(K key, Collection otherKeys, Aggregate aggregate, Weights weights); /** @@ -798,7 +755,6 @@ default Set> intersectWithScores(K key, Collection otherKeys, A * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZINTERSTORE */ - @Nullable Long intersectAndStore(K key, K otherKey, K destKey); /** @@ -810,7 +766,6 @@ default Set> intersectWithScores(K key, Collection otherKeys, A * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZINTERSTORE */ - @Nullable Long intersectAndStore(K key, Collection otherKeys, K destKey); /** @@ -824,7 +779,6 @@ default Set> intersectWithScores(K key, Collection otherKeys, A * @since 2.1 * @see Redis Documentation: ZINTERSTORE */ - @Nullable default Long intersectAndStore(K key, Collection otherKeys, K destKey, Aggregate aggregate) { return intersectAndStore(key, otherKeys, destKey, aggregate, Weights.fromSetCount(1 + otherKeys.size())); } @@ -841,7 +795,6 @@ default Long intersectAndStore(K key, Collection otherKeys, K destKey, Aggreg * @since 2.1 * @see Redis Documentation: ZINTERSTORE */ - @Nullable Long intersectAndStore(K key, Collection otherKeys, K destKey, Aggregate aggregate, Weights weights); /** @@ -853,7 +806,6 @@ default Long intersectAndStore(K key, Collection otherKeys, K destKey, Aggreg * @since 2.6 * @see Redis Documentation: ZUNION */ - @Nullable default Set union(K key, K otherKey) { return union(key, Collections.singleton(otherKey)); } @@ -867,7 +819,6 @@ default Set union(K key, K otherKey) { * @since 2.6 * @see Redis Documentation: ZUNION */ - @Nullable Set union(K key, Collection otherKeys); /** @@ -879,7 +830,6 @@ default Set union(K key, K otherKey) { * @since 2.6 * @see Redis Documentation: ZUNION */ - @Nullable default Set> unionWithScores(K key, K otherKey) { return unionWithScores(key, Collections.singleton(otherKey)); } @@ -893,7 +843,6 @@ default Set> unionWithScores(K key, K otherKey) { * @since 2.6 * @see Redis Documentation: ZUNION */ - @Nullable Set> unionWithScores(K key, Collection otherKeys); /** @@ -906,7 +855,6 @@ default Set> unionWithScores(K key, K otherKey) { * @since 2.6 * @see Redis Documentation: ZUNION */ - @Nullable default Set> unionWithScores(K key, Collection otherKeys, Aggregate aggregate) { return unionWithScores(key, otherKeys, aggregate, Weights.fromSetCount(1 + otherKeys.size())); } @@ -922,7 +870,6 @@ default Set> unionWithScores(K key, Collection otherKeys, Aggre * @since 2.6 * @see Redis Documentation: ZUNION */ - @Nullable Set> unionWithScores(K key, Collection otherKeys, Aggregate aggregate, Weights weights); /** @@ -934,7 +881,6 @@ default Set> unionWithScores(K key, Collection otherKeys, Aggre * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZUNIONSTORE */ - @Nullable Long unionAndStore(K key, K otherKey, K destKey); /** @@ -946,7 +892,6 @@ default Set> unionWithScores(K key, Collection otherKeys, Aggre * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZUNIONSTORE */ - @Nullable Long unionAndStore(K key, Collection otherKeys, K destKey); /** @@ -960,7 +905,6 @@ default Set> unionWithScores(K key, Collection otherKeys, Aggre * @since 2.1 * @see Redis Documentation: ZUNIONSTORE */ - @Nullable default Long unionAndStore(K key, Collection otherKeys, K destKey, Aggregate aggregate) { return unionAndStore(key, otherKeys, destKey, aggregate, Weights.fromSetCount(1 + otherKeys.size())); } @@ -977,7 +921,6 @@ default Long unionAndStore(K key, Collection otherKeys, K destKey, Aggregate * @since 2.1 * @see Redis Documentation: ZUNIONSTORE */ - @Nullable Long unionAndStore(K key, Collection otherKeys, K destKey, Aggregate aggregate, Weights weights); /** @@ -1005,7 +948,6 @@ default Long unionAndStore(K key, Collection otherKeys, K destKey, Aggregate * @see Redis Documentation: ZRANGEBYLEX * @deprecated since 3.0. Please use {@link #rangeByLex(Object, Range)} instead. */ - @Nullable @Deprecated(since = "3.0", forRemoval = true) default Set rangeByLex(K key, org.springframework.data.redis.connection.RedisZSetCommands.Range range) { return rangeByLex(key, range.toRange()); @@ -1021,7 +963,6 @@ default Set rangeByLex(K key, org.springframework.data.redis.connection.Redis * @since 3.0 * @see Redis Documentation: ZRANGEBYLEX */ - @Nullable default Set rangeByLex(K key, Range range) { return rangeByLex(key, range, Limit.unlimited()); } @@ -1040,7 +981,6 @@ default Set rangeByLex(K key, Range range) { * @see Redis Documentation: ZRANGEBYLEX * @deprecated since 3.0. Please use {@link #rangeByLex(Object, Range, Limit)} instead. */ - @Nullable @Deprecated(since = "3.0", forRemoval = true) default Set rangeByLex(K key, org.springframework.data.redis.connection.RedisZSetCommands.Range range, Limit limit) { @@ -1059,7 +999,6 @@ default Set rangeByLex(K key, org.springframework.data.redis.connection.Redis * @since 3.0 * @see Redis Documentation: ZRANGEBYLEX */ - @Nullable Set rangeByLex(K key, Range range, Limit limit); /** @@ -1074,7 +1013,6 @@ default Set rangeByLex(K key, org.springframework.data.redis.connection.Redis * @see Redis Documentation: ZREVRANGEBYLEX * @deprecated since 3.0. Please use {@link #reverseRangeByLex(Object, Range)} */ - @Nullable @Deprecated(since = "3.0", forRemoval = true) default Set reverseRangeByLex(K key, org.springframework.data.redis.connection.RedisZSetCommands.Range range) { return reverseRangeByLex(key, range.toRange()); @@ -1090,7 +1028,6 @@ default Set reverseRangeByLex(K key, org.springframework.data.redis.connectio * @since 3.0 * @see Redis Documentation: ZREVRANGEBYLEX */ - @Nullable default Set reverseRangeByLex(K key, Range range) { return reverseRangeByLex(key, range, Limit.unlimited()); } @@ -1109,7 +1046,6 @@ default Set reverseRangeByLex(K key, Range range) { * @see Redis Documentation: ZREVRANGEBYLEX * @deprecated since 3.0. Please use {@link #reverseRangeByLex(Object, Range, Limit)} instead. */ - @Nullable @Deprecated(since = "3.0", forRemoval = true) default Set reverseRangeByLex(K key, org.springframework.data.redis.connection.RedisZSetCommands.Range range, Limit limit) { @@ -1128,7 +1064,6 @@ default Set reverseRangeByLex(K key, org.springframework.data.redis.connectio * @since 2.4 * @see Redis Documentation: ZREVRANGEBYLEX */ - @Nullable Set reverseRangeByLex(K key, Range range, Limit limit); /** @@ -1143,7 +1078,6 @@ default Set reverseRangeByLex(K key, org.springframework.data.redis.connectio * @see #rangeByLex(Object, Range) * @see Redis Documentation: ZRANGESTORE */ - @Nullable default Long rangeAndStoreByLex(K srcKey, K dstKey, Range range) { return rangeAndStoreByLex(srcKey, dstKey, range, Limit.unlimited()); } @@ -1162,7 +1096,6 @@ default Long rangeAndStoreByLex(K srcKey, K dstKey, Range range) { * @see #rangeByLex(Object, Range, Limit) * @see Redis Documentation: ZRANGESTORE */ - @Nullable Long rangeAndStoreByLex(K srcKey, K dstKey, Range range, Limit limit); /** @@ -1177,7 +1110,6 @@ default Long rangeAndStoreByLex(K srcKey, K dstKey, Range range) { * @see #reverseRangeByLex(Object, Range) * @see Redis Documentation: ZRANGESTORE */ - @Nullable default Long reverseRangeAndStoreByLex(K srcKey, K dstKey, Range range) { return reverseRangeAndStoreByLex(srcKey, dstKey, range, Limit.unlimited()); } @@ -1196,7 +1128,6 @@ default Long reverseRangeAndStoreByLex(K srcKey, K dstKey, Range range) * @see #reverseRangeByLex(Object, Range, Limit) * @see Redis Documentation: ZRANGESTORE */ - @Nullable Long reverseRangeAndStoreByLex(K srcKey, K dstKey, Range range, Limit limit); /** @@ -1211,7 +1142,6 @@ default Long reverseRangeAndStoreByLex(K srcKey, K dstKey, Range range) * @see #rangeByScore(Object, double, double) * @see Redis Documentation: ZRANGESTORE */ - @Nullable default Long rangeAndStoreByScore(K srcKey, K dstKey, Range range) { return rangeAndStoreByScore(srcKey, dstKey, range, Limit.unlimited()); } @@ -1230,7 +1160,6 @@ default Long rangeAndStoreByScore(K srcKey, K dstKey, Range ra * @see #rangeByScore(Object, double, double, long, long) * @see Redis Documentation: ZRANGESTORE */ - @Nullable Long rangeAndStoreByScore(K srcKey, K dstKey, Range range, Limit limit); /** @@ -1245,7 +1174,6 @@ default Long rangeAndStoreByScore(K srcKey, K dstKey, Range ra * @see #reverseRangeByScore(Object, double, double) * @see Redis Documentation: ZRANGESTORE */ - @Nullable default Long reverseRangeAndStoreByScore(K srcKey, K dstKey, Range range) { return reverseRangeAndStoreByScore(srcKey, dstKey, range, Limit.unlimited()); } @@ -1264,7 +1192,6 @@ default Long reverseRangeAndStoreByScore(K srcKey, K dstKey, RangeRedis Documentation: ZRANGESTORE */ - @Nullable Long reverseRangeAndStoreByScore(K srcKey, K dstKey, Range range, Limit limit); /**