Redis is optional so type may not be loaded. Check class name on exception to prevent unknown constant error.