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

Method Add

src/cripts/Configs.cc:153–161  ·  view source on GitHub ↗

Static members for the records "cache"

Source from the content-addressed store, hash-verified

151
152// Static members for the records "cache"
153void
154Records::Add(const Records *rec)
155{
156 CAssert(rec->Loaded());
157 auto it = _gRecords.find(rec->Name());
158
159 CAssert(it == _gRecords.end());
160 _gRecords[rec->Name()] = rec;
161}
162
163const Records *
164Records::Lookup(const cripts::string_view name)

Callers

nothing calls this directly

Calls 4

LoadedMethod · 0.80
findMethod · 0.45
NameMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected