Monorepo for Tangled
at 0250a132af222ad2d362496bdc089c9c0a79e307 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}