2019-12-31 07:16:11 +01:00
|
|
|
package places
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
2020-05-30 01:41:47 +02:00
|
|
|
"github.com/allegro/bigcache"
|
2019-12-31 07:16:11 +01:00
|
|
|
)
|
|
|
|
|
2020-05-30 01:41:47 +02:00
|
|
|
var cache *bigcache.BigCache
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
var err error
|
|
|
|
|
|
|
|
cache, err = bigcache.NewBigCache(bigcache.DefaultConfig(time.Hour))
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
log.Errorf("")
|
|
|
|
}
|
|
|
|
}
|