Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

EXPIRE

Estado atual. Define o TTL de uma chave MEMORY em segundos.

Define ou substitui o TTL de uma chave.

EXPIRE sessions 'ana' '30 min';

A expiração é por linha. A remoção pode ser preguiçosa, mas uma leitura nunca devolve uma linha expirada.