Clears all cached results.
Deletes a specific cache entry by key.
Checks if a cache entry exists for the given arguments.
Returns the current size of the cache.
OptionalstatsReturns cache statistics if enabled.
Cache statistics or undefined if stats are not enabled.
A memoized function with additional cache management methods.