~james/core

core/sitesd/cache/cache.go -rw-r--r-- 185 bytes
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 14 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
package cache

import "github.com/redis/go-redis/v9"

type Cache struct {
	*redis.Client
}

func New(addr string) *Cache {
	return &Cache{redis.NewClient(&redis.Options{Addr: addr})}
}