CADETProcess.optimization.ResultsCache.set#
- ResultsCache.set(key: Any, value: Any, tag: str | None = None, close: bool = True) None[source]#
Add entry to cache.
- Parameters:
- keyhashable
The key to retrieve the results for.
- valueobject
The value corresponding to the key.
- tagstr, optional
Tag to associate with result. The default is None.
- closebool, optional
If True, database will be closed after operation. The default is True.