func NewPersistentCertCache(d *db.DynamoDB) *PersistentCertCache {
	return &PersistentCertCache{
		PollTicker: time.NewTicker(time.Minute * pollTickerInterval),
		DB:         d,
		DomainsMap: map[string]db.Domain{},
		MapMutex:   &sync.Mutex{},
	}
}
NewPersistentCertCache creates a new persistent cache based on dynamo db
package certificate
import (
	"context"
	"sync"
	"time"
	"github.com/axelspringer/swerve/src/db"
	"github.com/axelspringer/swerve/src/log"
	"golang.org/x/crypto/acme/autocert"
)
const (
	pollTickerInterval = 5
)