mirror of
https://github.com/photoprism/photoprism.git
synced 2025-11-02 13:04:17 +08:00
20 lines
261 B
Go
20 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
|
|
}
|