Monorepo for Tangled
at 80e691c147bb29c58d51e6bb04de811642868428 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}