Files
photoprism/internal/entity/label_cache.go
2024-11-01 12:15:39 +01:00

15 lines
220 B
Go

package entity
import (
"time"
gc "github.com/patrickmn/go-cache"
)
var labelCache = gc.New(15*time.Minute, 15*time.Minute)
// FlushLabelCache resets the label cache.
func FlushLabelCache() {
labelCache.Flush()
}