tiled.server.object_cache.ObjectCache¶
- class tiled.server.object_cache.ObjectCache(available_bytes_in_process)[source]¶
-
Methods
__init__
(available_bytes_in_process)clear
()Empty the cache.
discard
(*keys)Discard one or more items from the cache if present.
discard_dask
(*keys)Discard one or more dask tasks from the cache, if present.
get
(key)Get cache item.
put
(key, value, cost[, nbytes])Put cache item.
Attributes
Maximum size in bytes
Within this context, get and store dask tasks with the object cache.