Merge pull request #568 from go-redis/fix/script-hash

Add Script.Hash
This commit is contained in:
Vladimir Mihailenco 2017-05-24 15:40:29 +03:00 committed by GitHub
commit 8403178174
1 changed files with 4 additions and 0 deletions

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)
}