adding configuration option for using query as the key in redis