Something like

    def compute(self):
        if self.redis_key is None:
            raise ValueError('You must define a key to get or override compute method')
        return self.redis_connect().get(self.redis_key)