add redis and thrift