|max state history|
|save state cache on the server|
|max cache time for valid state|
|redis connection string||``|
State class must inherit from
The store instance will be singleton.
now we can inject store and change the state. The state will be changed on all servers connected to the store by name.
return the current state
return total number of states
return states iterator
return state at index
set new state
increment counter by path
get state and lock for given time is state is locked it will retry with retryMilli.
return the previous state
set the previous state as the current state
return the next state
set the next state as the current state
set current state by previous state index
reset the state to init state or given state
disconnect form redis and stop listen to events