Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigKeyBasepath = "basepath" ConfigKeyMaxZoom = "max_zoom" )
View Source
const CacheType = "file"
Variables ¶
View Source
var (
ErrMissingBasepath = errors.New("filecache: missing required param 'basepath'")
)
Functions ¶
Types ¶
type Cache ¶
type Cache struct { Basepath string // MaxZoom determines the max zoom the cache to persist. Beyond this // zoom, cache Set() calls will be ignored. This is useful if the cache // should not be leveraged for higher zooms when data changes often. MaxZoom uint }
Click to show internal directories.
Click to hide internal directories.