(self, dist)
Add a distribution to the cache.
        :param dist: The distribution to add.
Add a distribution to the cache.
        :param dist: The distribution to add.
Add a distribution to the cache . : param dist : The distribution to add .
def add(self, dist):
        """
        Add a distribution to the cache.
        :param dist: The distribution to add.
        """
        if dist.path not in self.path:
            self.path[dist.path] = dist
            self.name.setdefault(dist.key, []).append(dist)
def add ( self , dist ) : if dist . path not in self . path : self . path [ dist . path ] = dist self . name . setdefault ( dist . key , [ ] ) . append ( dist )