package redis type Connection interface { Write([]byte) error // client should keep its subscribing channels Subscribe(channel string) UnSubscribe(channel string) SubsCount() int GetChannels() []string }