kevy

SET

Set a key's string value with optional TTL and existence conditions.

構文SET key value [EX seconds|PX milliseconds] [NX|XX]
グループstring
引数の数-3
導入バージョン1.0.0
フラグwrite
計算量O(1)
Redis 互換性differs: only NX / XX / EX / PX are parsed — KEEPTTL, EXAT, PXAT, GET and the IFEQ family are a syntax error; a repeated expire option is silently accepted last-one-wins instead of erroring

← すべてのコマンド