jacinle.utils.cache#
Functions
|
A decorator that converts a function into a cached property. |
|
A decorator that caches the result of a function. |
|
A decorator that caches the result of a function into a file. |
Functions
- cached_property(fget)[source]#
A decorator that converts a function into a cached property. Similar to
@property
, but the function result is cached. This function has threading lock support.
- cached_result(func)[source]#
A decorator that caches the result of a function. Note that this decorator does not support any arguments to the function.