code: def to_dict(self):
          
          data = dict()
          data['max_age'] = self.max_age
          data['cache_dir'] = self.cache_dir
          return data
docs: Returns a dict of all of it's necessary components.
              Not the same as the __dict__ method