Fix: get type of event from the object.

Also made redis implementation use the IRedisClientsManager interface
instead of requiring to pass connection information.