diff --git a/client.go b/client.go index 67335e9..120abb8 100644 --- a/client.go +++ b/client.go @@ -159,6 +159,9 @@ func (hc *HttpClient) Request() *define.Response { if response.RestyResponse, err = hc.request.Send(); nil != err { time.Sleep(time.Duration(hc.reqConfig.RetryRule.RetryTimeInterval) * time.Millisecond) } + + // 设置缓存 + response.IsCache, response.CacheError = hc.setCacheResult(response) } return nil