redis_record implementation for diff