def iscached(self):
        """
        Get whether object is cached (Spark only).
        """
        if self.mode == 'spark':
            return self.tordd().is_cached
        else:
            notsupported(self.mode)
Get whether object is cached (Spark only).