yeahoffline / redis-mock

Node.js redis client mock
212 stars 110 forks source link

Separating the logic of client and server #166

Closed kamiljano closed 3 years ago

kamiljano commented 3 years ago

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.