It is possible to have an application linked to multiple instances of redis. Potentially each instance has slightly different configuration behind it. Rearranging the project to link all the logic to the RedisMock (just like it works in reality... the entire logic is on the server, not in the client). This way, it is possible to get rid of one global instance of RedisMock and replace it with an instance directly held by the instance of the client.
It is possible to have an application linked to multiple instances of redis. Potentially each instance has slightly different configuration behind it. Rearranging the project to link all the logic to the
RedisMock
(just like it works in reality... the entire logic is on the server, not in the client). This way, it is possible to get rid of one global instance ofRedisMock
and replace it with an instance directly held by the instance of the client.