MCPcopy Create free account
hub / github.com/Snapchat/Valdi / isExpired

Method isExpired

valdi/src/valdi/snap_drawing/ImageLoading/ImageCacheItem.cpp:96–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96bool ImageCacheItem::isExpired(snap::utils::time::Duration<std::chrono::steady_clock> time) const {
97 return time >= _lastAccessed;
98}
99
100void ImageCacheItem::updateLastAccess() {
101 _lastAccessed = getCurrentTime();

Callers 2

invalidateCachedItemsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected