I am using RedisStateMachinePersister for persisting StateMachine with Redis. I can store StateMachine with below code
redisPersister.persist(mc,"1");
redisPersister is instance of RedisStateMachinePersister. I can also see in Redis termianl that some value is stored in Redis with key "1".
But when I try to retrieve this StateMachine with same key("1") with below code, it is not getting retrieve the StateMachine object which I have stored/persisted.
redisPersister.restore(mc2,"1");
mc2 object is not same mc object which I have persisted/stored.Any help on this would be appreciated.