func LoadCacheCfg() (*a.CacheCfg, error) {
	var cfg a.CacheCfg
	prefix := "CACHE"
	if err := envconfig.Process(prefix, &cfg); err != nil {
		return nil, fmt.Errorf("%s: %w", prefix, err)
	}
	return &cfg, nil
}
LoadCacheCfg load env to new instance of CacheCfg
package envcfg
import (
	"fmt"
	"github.com/kelseyhightower/envconfig"
	"github.com/typical-go/typical-go/pkg/typapp"
	a "github.com/typical-go/typical-rest-server/internal/app/infra"
)
func init() {
	typapp.Provide("", LoadCacheCfg)
	typapp.Provide("pg", LoadPgDatabaseCfg)
	typapp.Provide("", LoadEchoCfg)
}