photoprism/internal/entity/lens_cache.go

14 lines
169 B
Go
Raw Normal View History

package entity
import (
"time"
gc "github.com/patrickmn/go-cache"
)
var lensCache = gc.New(time.Hour, 15*time.Minute)
func FlushLensCache() {
lensCache.Flush()
}