kevy

EXPIRE

Set a key's TTL in seconds (non-positive TTL deletes the key).

構文EXPIRE key seconds
グループgeneric
引数の数3
導入バージョン1.0.0
フラグwrite
計算量O(1)
Redis 互換性differs: the NX / XX / GT / LT condition flags are not parsed — arity is fixed at 3, so EXPIRE key seconds NX is a wrong-arity error

← すべてのコマンド