class documentation
class IntersphinxCache(CacheT): (source)
Constructor: IntersphinxCache.fromParameters(sessionFactory, cachePath, maxAgeDictionary)
An Intersphinx cache.
Class Method | from |
Construct an instance with the given parameters. |
Method | close |
Undocumented |
Method | get |
Retrieve a URL using the cache. |
Instance Variable | _session |
A session that may or may not cache requests. |
def fromParameters(cls, sessionFactory:
Callable[ [], requests.Session]
, cachePath: str
, maxAgeDictionary: Mapping[ str, int]
) -> IntersphinxCache
:
(source)
¶
Construct an instance with the given parameters.
Parameters | |
sessionCallable[ | A zero-argument callable that returns a requests.Session . |
cachestr | Path of the cache directory. |
maxMapping[ | A mapping describing the maximum age of any cache entry. |
Returns | |
IntersphinxCache | Undocumented |
See Also | |
parseMaxAge |