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