Updated redis for defiined types instead of classes