New in PyXLL 5.11
The following functions relate to PyXLL’s Least Recently Used function cache.
See Cached Functions for additional details.
Returns information about functions that use the LRU cache.
Returns a dictionary of stats for the LRU cache.
When called with a function, a dictionary with the following keys is returned if a cache for that function is found:
maxsize - maximum number of cached reuslts, or 0 if unbounded
currsize - current number of cached results
hits - number of times a cached result has been returned
misses - number of times the function was called without finding a cached result
If called with no function, a dictionary of function names to dictionaries as described above is returned for cached functions.
function – Function to get cache info for, or None for all cached functions.
Clears cached result from the LRU cache.
When called with a function, cached results for that function only are cleared.
If called with no function, all cached results are cleared.
function – Function to clear cached results for, or None for all cached functions.