You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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. """
...
Activity