Closed ppittle closed 6 years ago
REstate sets up some defaults when connected to a kernel, whether that is the built-in one or Ninject. Those defaults include an InMemoryRepositoryComponent.
When you register the Redis component it replaces the binding of the in-memory repository. So, the easiest way to configure it to be in-memory is just to not register the Redis component.
That did it, thanks!
I'm working on creating an Agent, but I want to be able to control if the state is stored in Redis ( prod / qa) or In Memory (local dev / unit tests).
I am able to configure my
IAgent
to use Redis:How would I configure an
IAgent
to keep state in memory?