This is the ABC class that all concrete cache classes should inherit/overwrite:
classProgramCacheResource(abc.ABC):
@abc.abstractmethoddef__getitem__(self, key: Any) ->Module:
"""Retrieve the cached Module instance. key should be a hashable object. """
...
@abc.abstractmethoddef__setitem__(self, key: Any, val: Module):
"""Cache a Module instance. key should be a hashable object. """
...
This is the ABC class that all concrete cache classes should inherit/overwrite: