cache.go

 1package config
 2
 3// CacheConfig is the configuration for the cache server.
 4type CacheConfig struct {
 5	// Backend is the cache backend.
 6	Backend string `env:"CACHE_BACKEND" yaml:"backend"`
 7}
 8
 9// Environ returns the environment variables for the cache configuration.
10func (c CacheConfig) Environ() []string {
11	return []string{
12		"SOFT_SERVE_CACHE_BACKEND=" + c.Backend,
13	}
14}