Skip to main content

IStatesCacheManager

interface IStatesCacheManager​

Description: Monitor state cache management class

method saveKeyState​

fun <Result>saveKeyState(
key: AutelKey<Result>,
stateValue : Result
)

Description: Cache the state value of the specified key

Input parameters: key: AutelKey collection requested stateValue: the interface that responds to the callback

Output parameters: None。

Related parameters: None。

method getKeyState​

fun <Result>getKeyState(
key: AutelKey<Result>
)

Description: Cache the state value of the specified key

Input parameters: key: AutelKey collection requested

Output parameters: None。

Related parameters: None。

method resetAllKeyStates​

fun resetAllKeyStates()

Description: resetting all results

Input parameters: None。

Output parameters: None。

Related parameters: None。