Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/psf/cachecontrol
/ get
Method
get
cachecontrol/cache.py:20–21 ·
view source on GitHub ↗
(self, key: str)
Source
from the content-addressed store, hash-verified
18
19
class
BaseCache:
20
def
get(self, key: str) -> bytes | None:
21
raise
NotImplementedError()
22
23
def
set(
24
self, key: str, value: bytes, expires: int | datetime | None = None
Callers
15
issue_263.py
File · 0.45
test_redirect_response_is_cached
Method · 0.45
test_bust_cache_on_redirect
Method · 0.45
test_multiple_choices_is_cacheable
Method · 0.45
test_bust_cache_on_redirect
Method · 0.45
test_no_header_change_means_no_warning_header
Method · 0.45
test_heuristic_applies_to_301
Method · 0.45
test_heuristic_applies_to_304
Method · 0.45
test_cache_for_one_day
Method · 0.45
test_expires_after_one_day
Method · 0.45
test_last_modified
Method · 0.45
test_cache_response_no_store
Method · 0.45
Calls
no outgoing calls
Tested by
15
test_redirect_response_is_cached
Method · 0.36
test_bust_cache_on_redirect
Method · 0.36
test_multiple_choices_is_cacheable
Method · 0.36
test_bust_cache_on_redirect
Method · 0.36
test_no_header_change_means_no_warning_header
Method · 0.36
test_heuristic_applies_to_301
Method · 0.36
test_heuristic_applies_to_304
Method · 0.36
test_cache_for_one_day
Method · 0.36
test_expires_after_one_day
Method · 0.36
test_last_modified
Method · 0.36
test_cache_response_no_store
Method · 0.36
test_http11
Function · 0.36