photoprism/internal/maps/osm/cache.go
Michael Mayer 52b57e9fba Backend: Add maps package
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2019-12-20 11:30:58 +01:00

19 lines
261 B
Go

package osm
import (
"time"
"github.com/melihmucuk/geocache"
)
var geoCache *geocache.Cache
func init() {
c, err := geocache.NewCache(time.Hour, 5*time.Minute, geocache.WithIn1M)
if err != nil {
log.Panicf("osm: %s", err.Error())
}
geoCache = c
}