fix the middleware by replacing lib redis by txredis