Configuration for caching nodes.
CachePolicy(
self,
*,
key_func: KeyFuncT = default_cache_key,
ttl: int | None = None
Function to generate a cache key from the node's input. Defaults to hashing the input with pickle.
Time to live for the cache entry in seconds. If None, the entry never expires.