MCPcopy Create free account
hub / github.com/Firstyear/opensuse-proxy-cache / Classification

Enum Classification

opensuse-proxy-cache/src/cache.rs:102–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101#[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)]
102pub enum Classification {
103 // The more major repos
104 RepomdXmlSlow,
105 // Stuff from obs
106 RepomdXmlFast,
107 // Metadata, related to repos.
108 Metadata,
109 // Large blobs that need a slower rate of refresh. Some proxies
110 // may choose not to cache this at all.
111 Blob,
112 // Content that has inbuilt version strings, that we can
113 // keep forever.
114 Static,
115 // 🤔
116 Unknown,
117 // Spam ... ffs
118 Spam,
119}
120
121impl Classification {
122 fn prefetch(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected