MCPcopy Create free account
hub / github.com/apache/trafficserver / getCacheLookupResultName

Function getCacheLookupResultName

plugins/prefetch/plugin.cc:81–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81static const char *
82getCacheLookupResultName(TSCacheLookupResult result)
83{
84 switch (result) {
85 case TS_CACHE_LOOKUP_MISS:
86 return "TS_CACHE_LOOKUP_MISS";
87 break;
88 case TS_CACHE_LOOKUP_HIT_STALE:
89 return "TS_CACHE_LOOKUP_HIT_STALE";
90 break;
91 case TS_CACHE_LOOKUP_HIT_FRESH:
92 return "TS_CACHE_LOOKUP_HIT_FRESH";
93 break;
94 case TS_CACHE_LOOKUP_SKIPPED:
95 return "TS_CACHE_LOOKUP_SKIPPED";
96 break;
97 default:
98 return "UNKNOWN_CACHE_LOOKUP_EVENT";
99 break;
100 }
101}
102
103/**
104 * @brief Plugin initialization.

Callers 1

foundFreshFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected