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

Method setMaxAge

valdi/src/valdi/snap_drawing/ImageLoading/ImageCache.cpp:139–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void ImageCache::setMaxAge(uint64_t maxAgeSeconds) {
140 _maxAgeMicroSeconds = snap::utils::time::Duration<std::chrono::steady_clock>(std::chrono::seconds(maxAgeSeconds));
141}
142
143Ref<Image> ImageCache::retrieveImage(Ref<ImageCacheItem>& cachedItem) {
144 auto returnImage = cachedItem->updateLastAccessAndGetImage();

Callers 2

SetUpBaseMethod · 0.80

Calls

no outgoing calls

Tested by 1

SetUpBaseMethod · 0.64