gws.gis.cache
¶
Source code: gws.gis.cache
Submodules¶
Package Contents¶
- class gws.gis.cache.Config(*args, **kwargs)¶
Bases:
gws.Config
Global cache options
- seedingConcurrency: int = 1¶
Number of concurrent seeding jobs.
- seedingMaxTime: gws.Duration = '600'¶
Max. time for a seeding job.
- gws.gis.cache.store_in_web_cache(url: str, img: bytes)¶
Store an image in the web cache.
- Parameters:
url – URL path to use as the cache key.
img – Binary image data to store.
- Returns:
None. Image is stored in the cache.