Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/psf/cachecontrol
/ encode
Method
encode
cachecontrol/caches/file_cache.py:55–56 ·
view source on GitHub ↗
(x: str)
Source
from the content-addressed store, hash-verified
53
54
@staticmethod
55
def
encode(x: str) -> str:
56
return
hashlib.sha224(x.encode()).hexdigest()
57
58
def
_fn(self, name: str) -> str:
59
# NOTE: This method should not change as some may depend on it.
Callers
13
_fn
Method · 0.95
test_key_length
Method · 0.80
optional_cacheable_request
Method · 0.80
vary_accept
Method · 0.80
update_etag
Method · 0.80
etag
Method · 0.80
cache_60
Method · 0.80
no_cache
Method · 0.80
stream
Method · 0.80
__call__
Method · 0.80
dumps
Method · 0.80
loads
Method · 0.80
Calls
no outgoing calls
Tested by
9
test_key_length
Method · 0.64
optional_cacheable_request
Method · 0.64
vary_accept
Method · 0.64
update_etag
Method · 0.64
etag
Method · 0.64
cache_60
Method · 0.64
no_cache
Method · 0.64
stream
Method · 0.64
__call__
Method · 0.64