photoprism/internal/config/config_cache.go

19 lines
245 B
Go
Raw Normal View History

package config
import (
"time"
gc "github.com/patrickmn/go-cache"
)
var Cache = gc.New(time.Hour, 15*time.Minute)
const (
CacheKeyAppManifest = "app-manifest"
)
// FlushCache clears the config cache.
func FlushCache() {
Cache.Flush()
}