Class Memoizer<I,O>
java.lang.Object
com.azure.spring.data.cosmos.common.Memoizer<I,O>
Memoize function computation results
-
Method Summary
-
Method Details
-
memoize
Put function computation results into Memoizer- Type Parameters:
I
- the type of the input to the functionO
- the type of the output of the function- Parameters:
function
- represents a function that accepts one argument and produces a result- Returns:
- Function
-