Get id pre-generation and record creation for redis working