@@ -122,7 +122,7 @@ class CachePatterns {
122122
123123 Entry <bool > packageVisible (String package) => _cache
124124 .withPrefix ('package-visible/' )
125- .withTTL (Duration (days : 7 ))
125+ .withTTL (Duration (hours : 12 ))
126126 .withCodec (utf8)
127127 .withCodec (json)
128128 .withCodec (wrapAsCodec (
@@ -312,7 +312,7 @@ class CachePatterns {
312312
313313 Entry <bool > publisherVisible (String publisherId) => _cache
314314 .withPrefix ('publisher-visible/' )
315- .withTTL (Duration (days : 7 ))
315+ .withTTL (Duration (hours : 12 ))
316316 .withCodec (utf8)
317317 .withCodec (json)
318318 .withCodec (wrapAsCodec (
@@ -338,21 +338,6 @@ class CachePatterns {
338338 .withPrefix ('search-input-completion-data-json-gz/' )
339339 .withTTL (Duration (hours: 8 ))['-' ];
340340
341- /// Stores the flag that latest version of packages have been scanned for job entities.
342- Entry <bool > jobHistoryLatestScanned (String service) =>
343- jobHistoryPackageScanned (service, '' );
344-
345- /// Stores the flag that a [package] 's versions have been scanned for job entities.
346- Entry <bool > jobHistoryPackageScanned (String service, String package) => _cache
347- .withPrefix ('job-history-package-scanned/' )
348- .withTTL (Duration (days: 7 ))
349- .withCodec (utf8)
350- .withCodec (json)
351- .withCodec (wrapAsCodec (
352- encode: (bool value) => value,
353- decode: (d) => d as bool ,
354- ))['$service /$package ' ];
355-
356341 /// Cache for index objects, used by TaskBackend.
357342 Entry <BlobIndex > taskResultIndex (String package, String version) => _cache
358343 .withPrefix ('task-result-index/' )
0 commit comments