ff3f9b8537
Signed-off-by: Michael Mayer <michael@photoprism.app>
19 lines
286 B
Go
19 lines
286 B
Go
package config
|
|
|
|
import (
|
|
"time"
|
|
|
|
gc "github.com/patrickmn/go-cache"
|
|
)
|
|
|
|
var Cache = gc.New(time.Hour, 15*time.Minute)
|
|
|
|
const (
|
|
CacheKeyAppManifest = "app-manifest"
|
|
CacheKeyWallpaperUri = "wallpaper-uri"
|
|
)
|
|
|
|
// FlushCache clears the config cache.
|
|
func FlushCache() {
|
|
Cache.Flush()
|
|
}
|