Versions in this module Expand all Collapse all v0 v0.9.7 Dec 22, 2019 v0.9.6 Dec 22, 2019 Changes in this version + type Cache interface + Close func() error + Evictions func() int64 + Get func(string) (CacheItem, error) + Hits func() int64 + Misses func() int64 + Set func(string, CacheItem) error + Size func() int64 + func NewFSCache(data_root string) (Cache, error) + func NewGoCache(opts *GoCacheOptions) (Cache, error) + func NewSQLiteCache(db *database.SQLiteDatabase) (Cache, error) + type CacheItem interface + Geometry func() pip.GeoJSONGeometry + Polygons func() []geojson.Polygon + SPR func() spr.StandardPlacesResult + func NewFeatureCache(f geojson.Feature) (CacheItem, error) + type FSCache struct + Logger *log.WOFLogger + func (c *FSCache) Close() error + func (c *FSCache) Evictions() int64 + func (c *FSCache) Get(key string) (CacheItem, error) + func (c *FSCache) Hits() int64 + func (c *FSCache) Misses() int64 + func (c *FSCache) Set(key string, i CacheItem) error + func (c *FSCache) Size() int64 + type FeatureCache struct + FeaturePolygons []geojson.Polygon + FeatureSPR spr.StandardPlacesResult + func (fc *FeatureCache) Geometry() pip.GeoJSONGeometry + func (fc *FeatureCache) Polygons() []geojson.Polygon + func (fc *FeatureCache) SPR() spr.StandardPlacesResult + type GoCache struct + Logger *log.WOFLogger + Options *GoCacheOptions + func (c *GoCache) Close() error + func (c *GoCache) Evictions() int64 + func (c *GoCache) Get(key string) (CacheItem, error) + func (c *GoCache) Hits() int64 + func (c *GoCache) Misses() int64 + func (c *GoCache) Set(key string, item CacheItem) error + func (c *GoCache) Size() int64 + type GoCacheOptions struct + CacheSize int + CacheTrigger int + CleanupInterval time.Duration + DefaultExpiration time.Duration + func DefaultGoCacheOptions() (*GoCacheOptions, error) + func (o *GoCacheOptions) String() string + type SQLiteCache struct + Logger *log.WOFLogger + func (c *SQLiteCache) Close() error + func (c *SQLiteCache) Evictions() int64 + func (c *SQLiteCache) Get(key string) (CacheItem, error) + func (c *SQLiteCache) Hits() int64 + func (c *SQLiteCache) Misses() int64 + func (c *SQLiteCache) Set(key string, item CacheItem) error + func (c *SQLiteCache) Size() int64