Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB //nolint:gochecknoglobals // allow global DB.
DB global database variable.
Functions ¶
Types ¶
type RedisCache ¶ added in v0.21.0
type RedisCache struct {
Store *persist.RedisStore
DefaultCacheTime time.Duration
}
RedisCache is a config struct for redis cache.
func SetupRedisCache ¶ added in v0.21.0
func SetupRedisCache() *RedisCache
SetupRedisCache sets the redis up.
Click to show internal directories.
Click to hide internal directories.