code: def add_result(self, key, result):
          
          if len(self.cache) > self.max_size:
              return
          if key is not None:
              self.cache[key] = result
docs: Add result object to cache with given key.
          The request is ignored when the cache is already full or the key
          is None.