kevy

XADD

Append an entry to a stream, with optional trim.

構文XADD key [NOMKSTREAM] [MAXLEN [=|~] threshold | MINID [=|~] id] id|* field value [field value ...]
グループstream
引数の数-5
導入バージョン1.0.0
フラグwrite
計算量O(log N) to insert; O(N*F) whenever a MAXLEN / MINID clause actually evicts, because the trim triggers a full weight recompute
Redis 互換性differs: the approximate-trim '~' is accepted for wire compatibility but always trims exactly, and the LIMIT clause is not parsed

← すべてのコマンド