1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-14 01:21:30 +03:00

Check that clients implement scripter interface.

This commit is contained in:
Vladimir Mihailenco
2016-12-14 12:12:50 +02:00
parent c6acf2ed15
commit 34122bffa8
6 changed files with 9 additions and 8 deletions

View File

@ -14,6 +14,10 @@ type scripter interface {
ScriptLoad(script string) *StringCmd
}
var _ scripter = (*Client)(nil)
var _ scripter = (*Ring)(nil)
var _ scripter = (*ClusterClient)(nil)
type Script struct {
src, hash string
}