update redis midware