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

← 全部命令