MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / cacheKey

Method cacheKey

Telegram/SourceFiles/data/data_document.cpp:1755–1763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1753}
1754
1755Storage::Cache::Key DocumentData::cacheKey() const {
1756 if (hasWebLocation()) {
1757 return Data::WebDocumentCacheKey(_urlLocation);
1758 } else if (!_access && !_url.isEmpty()) {
1759 return Data::UrlCacheKey(_url);
1760 } else {
1761 return Data::DocumentCacheKey(_dc, id);
1762 }
1763}
1764
1765uint8 DocumentData::cacheTag() const {
1766 if (type == StickerDocument) {

Callers 12

applyUserpicMethod · 0.45
UpdateCloudFileFunction · 0.45
collectLocalDataMethod · 0.45
SessionMethod · 0.45
documentConvertMethod · 0.45
collectLocalDataMethod · 0.45

Calls 4

WebDocumentCacheKeyFunction · 0.85
UrlCacheKeyFunction · 0.85
DocumentCacheKeyFunction · 0.85
isEmptyMethod · 0.45

Tested by

no test coverage detected