/
githubmirror
/
photoprism
Обзор
Документация
Войти
/
githubmirror
/
photoprism
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
internal/config/config_cache.go
22 строки
491 B
Michael Mayer
CI: Apply Go linter recommendations to "internal/config" packages #5330
22 ноя 2025, 22:00
22 ноя 2025, 22:00
7c0f0b4
Код
Авторство
О чём код?
package config import ( "time" gc "github.com/patrickmn/go-cache" ) // Cache stores shared config values for quick reuse across requests. var Cache = gc.New(time.Hour, 15*time.Minute) const ( // CacheKeyAppManifest is the cache key for the PWA manifest. CacheKeyAppManifest = "app-manifest" // CacheKeyWallpaperUri is the cache key for the current wallpaper URI. CacheKeyWallpaperUri = "wallpaper-uri" ) // FlushCache clears the config cache. func FlushCache() { Cache.Flush() }