DATAREDIS-1196 - Polishing.
Tweak Redis 6.0.6 requirement wording. Join assertions where possible and use more concise assertions. Original pull request: #563.
This commit is contained in:
@@ -49,7 +49,7 @@ public interface RedisListCommands {
|
||||
|
||||
/**
|
||||
* Returns the index of matching elements inside the list stored at given {@literal key}. <br />
|
||||
* Requires Redis 6.0.6.
|
||||
* Requires Redis 6.0.6 or newer.
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param element must not be {@literal null}.
|
||||
@@ -64,7 +64,7 @@ public interface RedisListCommands {
|
||||
|
||||
/**
|
||||
* Returns the index of matching elements inside the list stored at given {@literal key}. <br />
|
||||
* Requires Redis 6.0.6.
|
||||
* Requires Redis 6.0.6 or newer.
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param element must not be {@literal null}.
|
||||
|
||||
@@ -688,7 +688,7 @@ public interface StringRedisConnection extends RedisConnection {
|
||||
|
||||
/**
|
||||
* Returns the index of matching elements inside the list stored at given {@literal key}. <br />
|
||||
* Requires Redis 6.0.6.
|
||||
* Requires Redis 6.0.6 or newer.
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param element must not be {@literal null}.
|
||||
@@ -703,7 +703,7 @@ public interface StringRedisConnection extends RedisConnection {
|
||||
|
||||
/**
|
||||
* Returns the index of matching elements inside the list stored at given {@literal key}. <br />
|
||||
* Requires Redis 6.0.6.
|
||||
* Requires Redis 6.0.6 or newer.
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param element must not be {@literal null}.
|
||||
@@ -2059,7 +2059,7 @@ public interface StringRedisConnection extends RedisConnection {
|
||||
|
||||
/**
|
||||
* Append the given {@link StringRecord} to the stream stored at {@link StringRecord#getStream()}.
|
||||
*
|
||||
*
|
||||
* @param record must not be {@literal null}.
|
||||
* @param options must not be {@literal null}, use {@link XAddOptions#none()} instead.
|
||||
* @return the record Id. {@literal null} when used in pipeline / transaction.
|
||||
|
||||
@@ -171,7 +171,7 @@ public interface BoundListOperations<K, V> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Returns the index of the first occurrence of the specified value in the list at at {@code key}. <br />
|
||||
* Requires Redis 6.0.6
|
||||
* Requires Redis 6.0.6 or newer.
|
||||
*
|
||||
* @param value must not be {@literal null}.
|
||||
* @return {@literal null} when used in pipeline / transaction or when not contained in list.
|
||||
@@ -182,7 +182,7 @@ public interface BoundListOperations<K, V> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Returns the index of the last occurrence of the specified value in the list at at {@code key}. <br />
|
||||
* Requires Redis 6.0.6
|
||||
* Requires Redis 6.0.6 or newer.
|
||||
*
|
||||
* @param value must not be {@literal null}.
|
||||
* @return {@literal null} when used in pipeline / transaction or when not contained in list.
|
||||
|
||||
@@ -215,7 +215,7 @@ public interface ListOperations<K, V> {
|
||||
|
||||
/**
|
||||
* Returns the index of the first occurrence of the specified value in the list at at {@code key}. <br />
|
||||
* Requires Redis 6.0.6
|
||||
* Requires Redis 6.0.6 or newer.
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param value must not be {@literal null}.
|
||||
@@ -227,7 +227,7 @@ public interface ListOperations<K, V> {
|
||||
|
||||
/**
|
||||
* Returns the index of the last occurrence of the specified value in the list at at {@code key}. <br />
|
||||
* Requires Redis 6.0.6
|
||||
* Requires Redis 6.0.6 or newer.
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param value must not be {@literal null}.
|
||||
|
||||
@@ -198,7 +198,7 @@ public interface ReactiveListOperations<K, V> {
|
||||
|
||||
/**
|
||||
* Returns the index of the first occurrence of the specified value in the list at at {@code key}. <br />
|
||||
* Requires Redis 6.0.6
|
||||
* Requires Redis 6.0.6 or newer.
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param value must not be {@literal null}.
|
||||
@@ -210,7 +210,7 @@ public interface ReactiveListOperations<K, V> {
|
||||
|
||||
/**
|
||||
* Returns the index of the last occurrence of the specified value in the list at at {@code key}. <br />
|
||||
* Requires Redis 6.0.6
|
||||
* Requires Redis 6.0.6 or newer.
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param value must not be {@literal null}.
|
||||
|
||||
Reference in New Issue
Block a user