def delete(self):
        """
        Deletes all the keys from redis along with emptying the objects
        internal `_data` dict, then deleting itself at the end of it all.
        """
        redis_search_key = ":".join([self.namespace, self.key, "*"])
        keys = self.conn.keys(redis_search_key)
        if keys:
            for key in keys:
                part = key.split(":")[-1]
                self._data.pop(part)
                self.conn.delete(part)

        del self
Deletes all the keys from redis along with emptying the objects
        internal `_data` dict, then deleting itself at the end of it all.