Redis键管理PTTLOn this pagePTTLNoteOfficial reference: PTTL. Read the remaining key lifetime in milliseconds. Syntax PTTL key -1 means no expiration; -2 means the key is missing. Results ReturnRowsContentResultSet1RESULT field, LONG type Example SET demo:message hello PX 60000PTTL demo:message