Skip to main content

cache_path_for

Function cache_path_for 

Source
pub fn cache_path_for(host: &str, path: &str) -> String
Expand description

hostpath からキャッシュ上の絶対パスを作る。

パスは FNV-1a で 16 桁の 16 進へ畳む。 ホスト名はそのまま入れる(人が読んで分かるように)が、 : だけは使えないので - へ置き換える。