polywrap_uri_resolvers.resolvers.legacy.wrapper_cache.in_memory_wrapper_cache module
This module contains the in-memory wrapper cache.
- class polywrap_uri_resolvers.resolvers.legacy.wrapper_cache.in_memory_wrapper_cache.InMemoryWrapperCache[source]
Bases:
WrapperCacheInMemoryWrapperCache is an in-memory implementation of the wrapper cache interface.
- get(uri: Uri) UriWrapper | None[source]
Get a wrapper from the cache by its uri.
- map: Dict[Uri, UriWrapper]
The map of uris to wrappers.
- set(uri: Uri, wrapper: UriWrapper) None[source]
Set a wrapper in the cache by its uri.