()
| 456 | } |
| 457 | |
| 458 | func (e *RedisCacheError) Error() string { |
| 459 | errorMsg := fmt.Sprintf("error while reading cached result in redis for key %s, only %d bytes of %d were fetched", |
| 460 | e.key, e.readPayloadSize, e.expectedPayloadSize) |
| 461 | if e.rootcause != nil { |
| 462 | errorMsg = fmt.Sprintf("%s, root cause:%s", errorMsg, e.rootcause) |
| 463 | } |
| 464 | return errorMsg |
| 465 | } |
| 466 | |
| 467 | type RedisCacheCorruptionError struct { |
| 468 | } |
no outgoing calls