add id generator, redis lua wrapper