kevy

SET

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

SyntaxSET key value [EX seconds|PX milliseconds] [NX|XX]
Groupstring
Arity-3
Since1.0.0
Flagswrite
ComplexityO(1)
Redis compatibilitydiffers: 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

← All commands