1
0
forked from MTSR/mapserver

safe cache values

This commit is contained in:
Thomas Rudin 2019-01-19 16:50:05 +01:00
parent 8e2ff913fc
commit 2e1e681a73

View File

@ -26,7 +26,7 @@ func getKey(pos coords.MapBlockCoords) string {
}
func NewMapBlockAccessor(accessor db.DBAccessor) *MapBlockAccessor {
c := cache.New(1*time.Second, 2*time.Second)
c := cache.New(100*time.Millisecond, 200*time.Millisecond)
return &MapBlockAccessor{accessor: accessor, c: c}
}