mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 05:07:31 +00:00
24 lines
339 B
Go
24 lines
339 B
Go
package gomap
|
|
|
|
import (
|
|
"github.com/zitadel/zitadel/internal/cache"
|
|
)
|
|
|
|
type Config struct {
|
|
Enabled bool
|
|
AutoPrune cache.AutoPruneConfig
|
|
}
|
|
|
|
type Connector struct {
|
|
Config cache.AutoPruneConfig
|
|
}
|
|
|
|
func NewConnector(config Config) *Connector {
|
|
if !config.Enabled {
|
|
return nil
|
|
}
|
|
return &Connector{
|
|
Config: config.AutoPrune,
|
|
}
|
|
}
|