![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|


Public Member Functions | |
| None | set_body (self, str key, bytes body) |
| IO[bytes]|None | get_body (self, str key) |
Public Member Functions inherited from pip._vendor.cachecontrol.cache.BaseCache | |
| bytes|None | get (self, str key) |
| None | set (self, str key, bytes value, int|datetime|None expires=None) |
| None | delete (self, str key) |
| None | close (self) |
In this variant, the body is not stored mixed in with the metadata, but is
passed in (as a bytes-like object) in a separate call to ``set_body()``.
That is, the expected interaction pattern is::
cache.set(key, serialized_metadata)
cache.set_body(key)
Similarly, the body should be loaded separately via ``get_body()``.
| IO[bytes] | None pip._vendor.cachecontrol.cache.SeparateBodyBaseCache.get_body | ( | self, | |
| str | key | ||
| ) |
Return the body as file-like object.
Reimplemented in pip._internal.network.cache.SafeFileCache, and pip._vendor.cachecontrol.caches.file_cache.SeparateBodyFileCache.