MCPcopy Create free account
hub / github.com/FoxIO-LLC/ja4 / get_cache

Function get_cache

python/common.py:41–47  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

39# we print final results from the cache
40
41def get_cache(x):
42 if x['hl'] in [ 'http', 'http2']:
43 return http_cache
44 elif x['hl'] == 'quic':
45 return quic_cache
46 else:
47 return conn_cache
48
49def clean_cache(x):
50 cache = get_cache(x)

Callers 9

clean_cacheFunction · 0.85
cache_updateFunction · 0.85
signal_handlerFunction · 0.85
calculate_ja4_latencyFunction · 0.85
to_ja4Function · 0.85
displayFunction · 0.85
finalize_ja4sshFunction · 0.85
finalize_ja4Function · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected