q5/redis.go
aozhiwei a7c34b44d7 1
2020-12-04 16:47:45 +08:00

25 lines
330 B
Go

package q5
import (
"github.com/gomodule/redigo/redis"
)
type Redis struct {
host string
port int32
passwd string
conn *redis.Conn
}
func (this* Redis) Init(host string, port int32, passwd string) {
this.host = host
this.port = port
this.passwd = passwd
}
func (this* Redis) Open() {
}
func (this* Redis) Close() {
}