1
0
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:
Vladimir Mihailenco
2012-08-20 13:42:33 +03:00
parent 303687e438
commit 9ad848d04b
6 changed files with 231 additions and 33 deletions

View File

@ -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,
}
}