Monorepo for Tangled
at b1c7f6c2a09df586a81dc2609e607473e8e162c2 14 lines 203 B view raw
1package cache 2 3import "github.com/redis/go-redis/v9" 4 5type Cache struct { 6 *redis.Client 7} 8 9func New(addr string) *Cache { 10 rdb := redis.NewClient(&redis.Options{ 11 Addr: addr, 12 }) 13 return &Cache{rdb} 14}