:tocdepth: 3 :py:mod:`gws.gis.cache.core` ============================ .. py:module:: gws.gis.cache.core .. autoapi-nested-parse:: Cache management. **Source code:** :source:`gws.gis.cache.core` Module Contents --------------- .. py:function:: cleanup(root: gws.Root) .. py:class:: Config(*args, **kwargs) Bases: :py:obj:`gws.Config` Global cache options .. py:attribute:: seedingConcurrency :type: int :value: 1 number of concurrent seeding jobs .. py:attribute:: seedingMaxTime :type: gws.Duration :value: '600' max. time for a seeding job .. py:data:: DEFAULT_CONCURRENCY :value: 1 .. py:data:: DEFAULT_MAX_AGE :value: 604800 .. py:data:: DEFAULT_MAX_LEVEL :value: 3 .. py:data:: DEFAULT_MAX_TIME :value: 600 .. py:function:: drop(root: gws.Root, layer_uids=None) .. py:class:: Entry(*args, **kwargs) Bases: :py:obj:`gws.Data` Basic data object. This object can be instantiated by passing one or or ``dict`` arguments and/or keyword args. All dicts keys and keywords become attributes of the object. Accessing an undefined attribute returns ``None`` and no error is raised, unless the attribute name starts with an underscore. .. py:attribute:: config :type: dict .. py:attribute:: counts :type: dict .. py:attribute:: dirname :type: str .. py:attribute:: grids :type: dict[int, Grid] .. py:attribute:: layers :type: list[gws.Layer] .. py:attribute:: mpxCache :type: dict .. py:attribute:: uid :type: str .. py:class:: Grid(*args, **kwargs) Bases: :py:obj:`gws.Data` Basic data object. This object can be instantiated by passing one or or ``dict`` arguments and/or keyword args. All dicts keys and keywords become attributes of the object. Accessing an undefined attribute returns ``None`` and no error is raised, unless the attribute name starts with an underscore. .. py:attribute:: cachedTiles :type: int .. py:attribute:: maxX :type: int .. py:attribute:: maxY :type: int .. py:attribute:: res :type: float .. py:attribute:: totalTiles :type: int .. py:attribute:: uid :type: str .. py:attribute:: z :type: int .. py:data:: PIXEL_PNG8 :value: b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x01\x00\x00\x00\x01\x08\x03\x00\x00\x00(\xcb4\x... .. py:function:: seed(root: gws.Root, entries: list[Entry], levels: list[int]) .. py:class:: Status(*args, **kwargs) Bases: :py:obj:`gws.Data` Basic data object. This object can be instantiated by passing one or or ``dict`` arguments and/or keyword args. All dicts keys and keywords become attributes of the object. Accessing an undefined attribute returns ``None`` and no error is raised, unless the attribute name starts with an underscore. .. py:attribute:: entries :type: list[Entry] .. py:attribute:: staleDirs :type: list[str] .. py:function:: status(root: gws.Root, layer_uids=None, with_counts=True) -> Status .. py:function:: store_in_web_cache(url: str, img: bytes)