A decorator that memoizes the result of a getter method.
The first time the getter is accessed, it invokes the original method and caches the result. Subsequent accesses return the cached value without invoking the method again.
A decorator function that applies the memoization logic to the target getter.
A decorator that memoizes the result of a getter method.
The first time the getter is accessed, it invokes the original method and caches the result. Subsequent accesses return the cached value without invoking the method again.