Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/psf/cachecontrol
/ functions
Functions
218 in github.com/psf/cachecontrol
⨍
Functions
218
◇
Types & classes
47
Method
sess
(self, url)
tests/test_max_age.py:15
Method
sess
(self, url)
tests/test_vary.py:17
Method
set
( self, key: str, value: bytes, expires: int | datetime | None = None )
cachecontrol/cache.py:43
Method
set
( self, key: str, value: bytes, expires: int | datetime | None = None )
cachecontrol/caches/file_cache.py:74
Method
set
( self, key: str, value: bytes, expires: int | datetime | None = None )
cachecontrol/caches/redis_cache.py:23
Method
set_body
(self, key: str, body: bytes)
cachecontrol/caches/file_cache.py:130
Method
setup_method
(self)
tests/test_redirects.py:15
Method
setup_method
(self)
tests/test_redirects.py:36
Method
setup_method
(self)
tests/test_expires_heuristics.py:27
Method
setup_method
(self)
tests/test_expires_heuristics.py:45
Method
setup_method
(self)
tests/test_expires_heuristics.py:71
Method
setup_method
(self)
tests/test_expires_heuristics.py:90
Method
setup_method
(self)
tests/test_expires_heuristics.py:110
Method
setup_method
(self)
tests/test_expires_heuristics.py:136
Method
setup_method
(self)
tests/test_storage_redis.py:12
Method
setup_method
(self)
tests/test_cache_control.py:228
Method
setup_method
(self)
tests/test_serialization.py:14
Function
start_server
()
examples/benchmark.py:31
Method
stream
(self, env, start_response)
tests/conftest.py:97
Method
test_body_actually_stored_separately
Body is stored and can be retrieved from the SeparateBodyFileCache, with assurances it's actually being loaded from separate file tha
tests/test_storage_filecache.py:151
Method
test_body_stored_inline
The body is stored together with the metadata.
tests/test_storage_filecache.py:128
Method
test_bust_cache_on_redirect
(self, url)
tests/test_redirects.py:24
Method
test_bust_cache_on_redirect
(self, url)
tests/test_redirects.py:46
Method
test_cache_chunked_response
Verify that an otherwise cacheable response is cached when the response is chunked.
tests/test_chunked_response.py:24
Method
test_cache_for_one_day
(self, url)
tests/test_expires_heuristics.py:75
Method
test_cache_request_fresh_expires
(self)
tests/test_cache_control.py:280
Method
test_cache_request_fresh_max_age
(self)
tests/test_cache_control.py:263
Method
test_cache_request_max_age_0
(self)
tests/test_cache_control.py:255
Method
test_cache_request_no_cache
(self)
tests/test_cache_control.py:243
Method
test_cache_request_no_headers
(self)
tests/test_cache_control.py:235
Method
test_cache_request_no_store
(self)
tests/test_cache_control.py:251
Method
test_cache_request_not_in_cache
(self)
tests/test_cache_control.py:259
Method
test_cache_request_pragma_no_cache
(self)
tests/test_cache_control.py:247
Method
test_cache_request_unfresh_expires
(self)
tests/test_cache_control.py:290
Method
test_cache_request_unfresh_max_age
(self)
tests/test_cache_control.py:272
Method
test_cache_response_cache_max_age
(self, cc)
tests/test_cache_control.py:80
Method
test_cache_response_cache_max_age_with_invalid_value_not_cached
(self, cc)
tests/test_cache_control.py:88
Method
test_cache_response_no_cache_control
(self, cc)
tests/test_cache_control.py:74
Method
test_cache_response_no_store
(self)
tests/test_cache_control.py:96
Method
test_cache_response_no_store_with_etag
(self, cc)
tests/test_cache_control.py:109
Method
test_cached_request_with_bad_max_age_headers_not_returned
(self)
tests/test_cache_control.py:300
Method
test_client_max_age_0
Making sure when the client uses max-age=0 we don't get a cached copy even though we're still fresh.
tests/test_max_age.py:24
Method
test_client_max_age_3600
Verify we get a cached value when the client has a reasonable max-age value.
tests/test_max_age.py:40
Method
test_close
(self)
tests/test_adapter.py:65
Method
test_delete_invalidates_cache
(self, url, sess)
tests/test_adapter.py:60
Method
test_do_not_leak_response
(self, url, sess)
tests/test_adapter.py:73
Method
test_etags_get_example
RFC 2616 14.26 The If-None-Match request-header field is used with a method to make it conditional. A client that has one or more ent
tests/test_etag.py:36
Method
test_etags_get_no_cache
A 'Cache-Control: no-cache' header stops us from using the cache directly, but not from using the 'If-None-Match' header on the request.
tests/test_etag.py:82
Method
test_etags_get_with_range
A 'Range' header stops us from using the cache altogether.
tests/test_etag.py:97
Method
test_expired_etags_if_none_match_response
Make sure an expired response that contains an ETag uses the If-None-Match header.
tests/test_etag.py:126
Method
test_expires_after_one_day
(self, url)
tests/test_expires_heuristics.py:94
Method
test_expires_heuristic_arg
(self)
tests/test_expires_heuristics.py:64
Method
test_expires_is_not_replaced_when_present
(self)
tests/test_expires_heuristics.py:152
Method
test_expiry_is_no_more_that_twenty_four_hours
(self)
tests/test_expires_heuristics.py:201
Method
test_file_cache_recognizes_consumed_file_handle
(self, url)
tests/test_regressions.py:15
Method
test_filecache_directory_already_exists
Assert no errors are raised when using a cache directory that already exists on the filesystem.
tests/test_storage_filecache.py:62
Method
test_filecache_directory_not_exists
(self, tmpdir, sess)
tests/test_storage_filecache.py:47
Method
test_filecache_from_cache
(self, sess)
tests/test_storage_filecache.py:41
Method
test_filecache_with_delete_request
(self, tmpdir, sess)
tests/test_storage_filecache.py:108
Method
test_filecache_with_put_request
(self, tmpdir, sess)
tests/test_storage_filecache.py:114
Method
test_get_caches
(self, url, sess)
tests/test_adapter.py:42
Method
test_get_with_no_cache_does_not_cache
(self, url, sess)
tests/test_adapter.py:46
Function
test_getattr_during_gc
()
tests/test_regressions.py:24
Method
test_heuristic_applies_to_301
(self, url)
tests/test_expires_heuristics.py:52
Method
test_heuristic_applies_to_304
(self, url)
tests/test_expires_heuristics.py:57
Function
test_http11
(url)
tests/test_server_http_version.py:8
Method
test_key_length
Hash table keys: Most file systems have a 255 characters path limitation. * Make sure hash method does not produce t
tests/test_storage_filecache.py:82
Method
test_last_modified
(self, url)
tests/test_expires_heuristics.py:114
Method
test_last_modified_is_not_used_when_cache_control_present
(self)
tests/test_expires_heuristics.py:164
Method
test_last_modified_is_not_used_when_status_is_unknown
(self)
tests/test_expires_heuristics.py:175
Method
test_last_modified_is_used
(self)
tests/test_expires_heuristics.py:156
Method
test_last_modified_is_used_when_cache_control_public
(self)
tests/test_expires_heuristics.py:179
Method
test_load_by_version_v0
(self)
tests/test_serialization.py:34
Method
test_load_by_version_v1
(self)
tests/test_serialization.py:40
Method
test_load_by_version_v2
(self)
tests/test_serialization.py:46
Method
test_load_by_version_v3
(self)
tests/test_serialization.py:52
Method
test_lock_class
(self, tmpdir)
tests/test_storage_filecache.py:102
Method
test_multiple_choices_is_cacheable
(self, url)
tests/test_redirects.py:39
Method
test_no_body_creates_response_file_handle_on_dumps
(self, url)
tests/test_serialization.py:98
Method
test_no_cache_non_20x_response
(self, cc)
tests/test_cache_control.py:42
Method
test_no_cache_with_no_date
(self, cc)
tests/test_cache_control.py:59
Method
test_no_cache_with_vary_star
(self, cc)
tests/test_cache_control.py:115
Method
test_no_cache_with_wrong_sized_body
(self, cc)
tests/test_cache_control.py:66
Method
test_no_expiry_is_inferred_when_no_last_modified_is_present
(self)
tests/test_expires_heuristics.py:149
Method
test_no_header_change_means_no_warning_header
(self, url)
tests/test_expires_heuristics.py:37
Method
test_no_incomplete_read_on_dumps
(self, url)
tests/test_serialization.py:112
Method
test_no_vary_header
(self, url)
tests/test_serialization.py:85
Method
test_not_modified_releases_connection
(self, server, url)
tests/test_etag.py:154
Method
test_patch_invalidates_cache
(self, url, sess)
tests/test_adapter.py:55
Method
test_put_invalidates_cache
(self, url, sess)
tests/test_adapter.py:50
Method
test_read_latest_version
(self, url)
tests/test_serialization.py:74
Method
test_read_latest_version_streamable
(self, url)
tests/test_serialization.py:64
Method
test_read_version_v4
(self)
tests/test_serialization.py:58
Method
test_redirect_response_is_cached
(self, url)
tests/test_redirects.py:18
Method
test_set_expiration_datetime
(self)
tests/test_storage_redis.py:16
Method
test_set_expiration_datetime_aware
(self)
tests/test_storage_redis.py:20
Method
test_set_expiration_int
(self)
tests/test_storage_redis.py:24
Method
test_simple_lockfile_arg
(self, tmpdir)
tests/test_storage_filecache.py:96
Method
test_stream_is_cached
(self, url, sess)
tests/test_chunked_response.py:41
Method
test_stream_is_not_cached_when_content_is_not_read
(self, url, sess)
tests/test_chunked_response.py:52
← previous
next →
101–200 of 218, ranked by callers