Monorepo for Tangled
at 3379ab5721e08f23a774f4d17631843d37e8777d 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}