class_docstr: Provides caching for the defined types
class_docstr_tok: ["Provides","caching","for","the","defined","types"]
docstr: Adds an entry to the cache, if enabled
  
  Args:
      cache_type (CacheType): type of cache
      hashkey (int): hash key
      payload (Any): payload to assign
docstr_tok: ["Adds","an","entry","to","the","cache",",","if","enabled","Args",":","cache_type","(","CacheType",")",":","type","of","cache","hashkey","(","int",")",":","hash","key","payload","(","Any",")",":","payload","to","assign"]
code: def add(self, cache_type: CacheType, hashkey: int, payload: Any):
      """Adds an entry to the cache, if enabled
  
      Args:
          cache_type (CacheType): type of cache
          hashkey (int): hash key
          payload (Any): payload to assign
      """
      if self.enabled:
          self.cache[cache_type][hashkey] = payload
  
file_path: featuretools/featuretools/feature_base/cache.py
imports: from __future__ import annotations
  from collections import defaultdict
  from dataclasses import dataclass, field
  from enum import Enum
  from typing import Any, List, Optional, Union
label_desc: Use image node_id 2 for calling the FeatureCache obj's underlying member method code with example usage: obj.add(cache_type, hashkey, payload) without return types