Python Programming - Decorators - Discussion

Discussion Forum : Decorators - General Questions (Q.No. 33)
33.
What is the purpose of the @functools.lru_cache decorator's maxsize parameter?
The maximum number of unique arguments to be cached
The maximum size of the cache in bytes
The maximum number of function calls to be cached
The maximum number of distinct values to be cached
Answer: Option
Explanation:
The @functools.lru_cache decorator's maxsize parameter controls the maximum number of function calls to be cached.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.