mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Tweak comments
This commit is contained in:
14
redis.go
14
redis.go
@ -551,9 +551,11 @@ func txPipelineReadQueued(rd *proto.Reader, statusCmd *StatusCmd, cmds []Cmder)
|
|||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
// Client is a Redis client representing a pool of zero or more
|
// Client is a Redis client representing a pool of zero or more underlying connections.
|
||||||
// underlying connections. It's safe for concurrent use by multiple
|
// It's safe for concurrent use by multiple goroutines.
|
||||||
// goroutines.
|
//
|
||||||
|
// Client creates and frees connections automatically; it also maintains a free pool
|
||||||
|
// of idle connections. You can control the pool size with Config.PoolSize option.
|
||||||
type Client struct {
|
type Client struct {
|
||||||
*baseClient
|
*baseClient
|
||||||
cmdable
|
cmdable
|
||||||
@ -729,7 +731,11 @@ type conn struct {
|
|||||||
hooks // TODO: inherit hooks
|
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 database connections.
|
||||||
|
// It's safe for concurrent use by multiple goroutines.
|
||||||
|
|
||||||
|
// Prefer running commands from Client unless there is a specific need for a continuous
|
||||||
|
// single Redis connection.
|
||||||
type Conn struct {
|
type Conn struct {
|
||||||
*conn
|
*conn
|
||||||
ctx context.Context
|
ctx context.Context
|
||||||
|
Reference in New Issue
Block a user