code: def storeFromHinge(self, name, hingePoints):
          
          if name not in self._cache:
              if self._valid(hingePoints):
                  self._cache[name] = {'name': name, 'type': 'hinge', 'hinge': hingePoints}
                  self.writeCache()
                  return True
          return False
docs: Stores a new item in the cache if it is allowed in.
          :param name: the name.
          :param hingePoints: the hinge points. 
          :return: true if it is stored.