mirror of
https://github.com/redis/go-redis.git
synced 2025-06-12 14:21:52 +03:00
Add support for scripting commands.
This commit is contained in:
2
redis.go
2
redis.go
@ -137,6 +137,7 @@ func (c *BaseClient) Close() error {
|
||||
|
||||
type Client struct {
|
||||
*BaseClient
|
||||
TryEvalShaMinLen int
|
||||
}
|
||||
|
||||
func NewClient(openConn OpenConnFunc, closeConn CloseConnFunc, initConn InitConnFunc) *Client {
|
||||
@ -145,6 +146,7 @@ func NewClient(openConn OpenConnFunc, closeConn CloseConnFunc, initConn InitConn
|
||||
ConnPool: NewMultiConnPool(openConn, closeConn, 10),
|
||||
InitConn: initConn,
|
||||
},
|
||||
TryEvalShaMinLen: 80,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user