2023-02-10 15:53:01 +01:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
gc "github.com/patrickmn/go-cache"
|
|
|
|
)
|
|
|
|
|
|
|
|
var Cache = gc.New(time.Hour, 15*time.Minute)
|
|
|
|
|
|
|
|
const (
|
2023-03-20 10:28:01 +01:00
|
|
|
CacheKeyAppManifest = "app-manifest"
|
|
|
|
CacheKeyWallpaperUri = "wallpaper-uri"
|
2023-02-10 15:53:01 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// FlushCache clears the config cache.
|
|
|
|
func FlushCache() {
|
|
|
|
Cache.Flush()
|
|
|
|
}
|