Monorepo for Tangled
at 4247ce357ff7c82b8e72a6fcdfeca8c7e1e4ad98 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}