github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/conf/redis/redis_operator.go (about) 1 package redis 2 3 import "github.com/gomodule/redigo/redis" 4 5 type Operator interface { 6 // Key returns key with prefix 7 Key(key string) string 8 // Acquire redis connection 9 Acquire() redis.Conn 10 // Exec to execute redis command 11 Exec(cmd *Cmd, others ...*Cmd) (interface{}, error) 12 } 13 14 var ( 15 _ Operator = (*Redis)(nil) 16 _ Operator = (*Endpoint)(nil) 17 )