data_base
❭ dbopen
❭ cache
cache
-
data_base.dbopen.cache(function)
Cache the result of a function.
- Parameters:
function (callable) – The function to cache.
- Returns:
The cached function.
- Return type:
callable
Example
>>> cache(my\_function)(*args, **kwargs)