Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アップサート (置換)
(主キーをパイプラインとして使用)
「存在する場合は更新する」とはどういう意味ですか? 標準の Redis SET コマンド ( SET、MSET、HSET、LSETなど) は、キーが既に存在する場合は既存のキーを更新 (上書き) し、キーがまだ存在しない場合は新しいキーを挿入します。
SET
MSET
HSET
LSET
デフォルトの動作を求めているようです。