unesco_reader.config
Configuration file for unesco_reader
This file contains shared configuration for the unesco_reader package, including custom types and caching utilities.
Attributes
Functions
|
LRU cache decorator for API definition endpoints. |
|
Clear all caches used by the package. |
Module Contents
- unesco_reader.config.GeoUnitType
- unesco_reader.config._cached_functions: list = []
- unesco_reader.config.session_cache(maxsize: int = 32)
LRU cache decorator for API definition endpoints.
Caches results for the lifetime of the session. Use
clear_cacheto manually invalidate all cached data.- Parameters:
maxsize – Maximum number of entries in the cache.
- unesco_reader.config.clear_cache() None
Clear all caches used by the package.