class documentation
class IntersphinxCache(CacheT): (source)
Constructor: IntersphinxCache.fromParameters(sessionFactory, cachePath, maxAgeDictionary, verbosity)
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. |
| Instance Variable | verbosity |
Undocumented |
def fromParameters(cls, sessionFactory:
Callable[ [], requests.Session], cachePath: str, maxAgeDictionary: Mapping[ str, int], *, verbosity: int = 0) -> 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. |
verbosity:int | Undocumented |
| Returns | |
IntersphinxCache | Undocumented |
| See Also | |
parseMaxAge |