add callback of the connection to redis