-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
I would like to get the number of cache hits to test a newly cached function.
I know one way would be to set up a logfile. I wonder if there is any other, more elegant way to get the hits without using the logfile?
I've seen in a piece of code a utility function to the likes of memoise::stats(memoizedFun) but no-longer exists. The code example showed the number of cache hits among other things.
I have also seen a memoise:::hash_list() function that would allow inserting cache key labels which would identify each function in scripts having multiple memoised functions which, also no-longer exists.
Is this because I built the cache with cachem package?
Thank you!
Metadata
Metadata
Assignees
Labels
No labels