1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

chore: lazy reload when moved or ask

This commit is contained in:
Vladimir Mihailenco
2021-10-04 13:16:33 +03:00
parent 98bb99ddc2
commit 86258a11a9
3 changed files with 14 additions and 10 deletions

View File

@ -710,7 +710,9 @@ type conn struct {
hooks // TODO: inherit hooks
}
// Conn is like Client, but its pool contains single connection.
// Conn represents a single Redis connection rather than a pool of connections.
// Prefer running commands from Client unless there is a specific need
// for a continuous single Redis connection.
type Conn struct {
*conn
ctx context.Context