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

Method Write

internal/pool/conn.go:874–880  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

872}
873
874func (cn *Conn) Write(b []byte) (int, error) {
875 // Lock-free netConn access for better performance
876 if netConn := cn.getNetConn(); netConn != nil {
877 return netConn.Write(b)
878 }
879 return 0, net.ErrClosed
880}
881
882func (cn *Conn) RemoteAddr() net.Addr {
883 // Lock-free netConn access for better performance

Callers

nothing calls this directly

Calls 1

getNetConnMethod · 0.95

Tested by

no test coverage detected