46b9239026
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
19 lines
238 B
Go
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("")
|
|
}
|
|
}
|