1 2 3 4 5 6 7 8 9 10 11
package cache import "github.com/redis/go-redis/v9" type Cache struct { *redis.Client } func New(addr string) *Cache { return &Cache{redis.NewClient(&redis.Options{Addr: addr})} }