forked from MTSR/mapserver
safe cache values
This commit is contained in:
parent
8e2ff913fc
commit
2e1e681a73
@ -26,7 +26,7 @@ func getKey(pos coords.MapBlockCoords) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewMapBlockAccessor(accessor db.DBAccessor) *MapBlockAccessor {
|
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}
|
return &MapBlockAccessor{accessor: accessor, c: c}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user