sec_interp.core.interfaces.cache_interface module
- class sec_interp.core.interfaces.cache_interface.ICacheService(*args, **kwargs)[source]
Bases:
ProtocolAbstract protocol for the Processing Data Cache Service.
- get(bucket: str, key: str) Any | None[source]
Retrieve data from a specific cache bucket.
- Parameters:
bucket – The cache category (e.g., ‘topo’, ‘geol’).
key – Unique key for the parameter set.
- Returns:
The cached data or None if not found or expired.
- get_metadata(bucket: str, key: str) dict[str, Any] | None[source]
Retrieve metadata for a cached entry.
- Parameters:
bucket – The cache category.
key – Unique key for the entry.
- Returns:
Dictionary containing entry metadata or None if not found.