クラスの使用
org.springframework.data.redis.connection.RedisStreamCommands.XAddOptions
RedisStreamCommands.XAddOptions を使用するパッケージ
パッケージ
説明
さまざまな Redis ' ドライバー '/libraries と対話するための低レベルの抽象化を提供する接続パッケージ。
Redis を Spring の概念と統合するためのコアパッケージ。
org.springframework.data.redis.connection 内の RedisStreamCommands.XAddOptions 使用
修飾子と型メソッド説明RedisStreamCommands.XAddOptions.approximateTrimming(boolean approximateTrimming) ~フラグを使用して、上限のあるストリームに効率的なトリミングを適用します。RedisStreamCommands.XAddOptions.makeNoStream()ストリームがまだ存在しない場合は、ストリームの作成を無効にします。RedisStreamCommands.XAddOptions.makeNoStream(boolean makeNoStream) ストリームがまだ存在しない場合は、ストリームの作成を無効にします。RedisStreamCommands.XAddOptions.maxlen(long maxlen) ストリームのサイズを指定された最大要素数に制限します。指定された ID よりも低い ID を持つエントリを削除するMINIDトリミング戦略を適用します。RedisStreamCommands.XAddOptions.none()型 RedisStreamCommands.XAddOptions のパラメーターを持つ org.springframework.data.redis.connection のメソッド修飾子と型メソッド説明default RecordIdDefaultedRedisConnection.xAdd(MapRecord<byte[], byte[], byte[]> record, RedisStreamCommands.XAddOptions options) 使用すべきではありません。DefaultStringRedisConnection.xAdd(MapRecord<byte[], byte[], byte[]> record, RedisStreamCommands.XAddOptions options) DefaultStringRedisConnection.xAdd(StringRecord record, RedisStreamCommands.XAddOptions options) default reactor.core.publisher.Mono<RecordId>ReactiveStreamCommands.xAdd(ByteBufferRecord record, RedisStreamCommands.XAddOptions xAddOptions) 指定されたオプションでストリームレコードを追加します。RedisStreamCommands.xAdd(MapRecord<byte[], byte[], byte[]> record, RedisStreamCommands.XAddOptions options) 指定されたrecordをRecord#getStreamに保存されているストリームに追加します。StringRedisConnection.xAdd(StringRecord record, RedisStreamCommands.XAddOptions options) 指定されたStringRecordをRecord.getStream()に保存されているストリームに追加します。org.springframework.data.redis.core 内の RedisStreamCommands.XAddOptions 使用
型 RedisStreamCommands.XAddOptions のパラメーターを持つ org.springframework.data.redis.core のメソッド修飾子と型メソッド説明BoundStreamOperations.add(MapSE<HK, HV> content, RedisStreamCommands.XAddOptions xAddOptions) 指定されたオプションを使用して、ストリームkeyにレコードを追加します。default reactor.core.publisher.Mono<RecordId>ReactiveStreamOperations.add(K key, MapSE<? extends HK, ? extends HV> content, RedisStreamCommands.XAddOptions xAddOptions) 指定されたオプションを使用して、ストリームkeyにレコードを追加します。default reactor.core.publisher.Mono<RecordId>ReactiveStreamOperations.add(MapRecord<K, ? extends HK, ? extends HV> record, RedisStreamCommands.XAddOptions xAddOptions) 指定されたオプションを使用して、フィールド / 値のペアを保持するMapSE によってサポートされるレコードをストリームに追加します。reactor.core.publisher.Mono<RecordId>ReactiveStreamOperations.add(Record<K, ?> record, RedisStreamCommands.XAddOptions xAddOptions) 指定された値に基づくレコードを、指定されたオプションを使用してストリームに追加します。default RecordIdStreamOperations.add(K key, MapSE<? extends HK, ? extends HV> content, RedisStreamCommands.XAddOptions xAddOptions) 指定されたオプションを使用して、ストリームkeyにレコードを追加します。default RecordIdStreamOperations.add(MapRecord<K, ? extends HK, ? extends HV> record, RedisStreamCommands.XAddOptions xAddOptions) 指定されたオプションを使用して、フィールド / 値のペアを保持するMapSE によってサポートされるレコードをストリームに追加します。StreamOperations.add(Record<K, ?> record, RedisStreamCommands.XAddOptions xAddOptions) 指定された値に基づくレコードを、指定されたオプションを使用してストリームに追加します。
RedisCommandsProvider.streamCommands()を推奨。