Insert a value to the cache.
Parameters:
-
key
(str
)
–
-
value
(Any
)
–
Value to cache (will be JSON serialized)
Source code in src/appl/core/types/caching.py
| @abstractmethod
def insert(self, key: str, value: Any) -> None:
"""Insert a value to the cache.
Args:
key: Cache key
value: Value to cache (will be JSON serialized)
"""
pass
|