polywrap_uri_resolvers.resolvers.legacy.wrapper_cache.wrapper_cache module
This module contains the wrapper cache interface.
- class polywrap_uri_resolvers.resolvers.legacy.wrapper_cache.wrapper_cache.WrapperCache(*args, **kwargs)[source]
Bases:
ProtocolDefines a cache interface for caching wrappers by uri.
This is used by the wrapper resolver to cache wrappers for a given uri.
- abstract get(uri: Uri) UriWrapper | None[source]
Get a wrapper from the cache by its uri.
- abstract set(uri: Uri, wrapper: UriWrapper) None[source]
Set a wrapper in the cache by its uri.