1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-16 09:23:06 +03:00

Add Script.Hash

This commit is contained in:
Vladimir Mihailenco 2017-05-24 15:24:47 +03:00
parent 18c1db9466
commit e3550dd65c

View File

@ -31,6 +31,10 @@ func NewScript(src string) *Script {
}
}
func (s *Script) Hash() string {
return s.hash
}
func (s *Script) Load(c scripter) *StringCmd {
return c.ScriptLoad(s.src)
}