MCPcopy
hub / github.com/redis/go-redis / ReadOnlyError

Struct ReadOnlyError

internal/proto/redis_errors.go:28–30  ·  view source on GitHub ↗

ReadOnlyError is returned when trying to write to a read-only replica.

Source from the content-addressed store, hash-verified

26
27// ReadOnlyError is returned when trying to write to a read-only replica.
28type ReadOnlyError struct {
29 msg string
30}
31
32func (e *ReadOnlyError) Error() string {
33 return e.msg

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected