mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 08:44:04 +01:00
15 lines
220 B
Go
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()
|
|
}
|