photoprism/internal/hub/places/cache.go
2020-12-04 13:10:32 +01:00

19 lines
238 B
Go

package places
import (
"time"
"github.com/allegro/bigcache"
)
var cache *bigcache.BigCache
func init() {
var err error
cache, err = bigcache.NewBigCache(bigcache.DefaultConfig(time.Hour))
if err != nil {
log.Errorf("")
}
}