Implement persist command. Updated expire to handle negative values.