1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Add cache writing

This commit is contained in:
ofekshenawa
2024-03-03 11:20:05 +02:00
parent e9b162945b
commit 05aae206bb
10 changed files with 118 additions and 46 deletions

View File

@ -63,6 +63,10 @@ func (cn *Conn) RemoteAddr() net.Addr {
return nil
}
func (cn *Conn) GetRawOutput() []byte {
return cn.rd.GetLine()
}
func (cn *Conn) WithReader(
ctx context.Context, timeout time.Duration, fn func(rd *proto.Reader) error,
) error {