원클릭으로
cache-expiry-ttl
Automatically invalidate local caches after a specified time to live (ttl).
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Automatically invalidate local caches after a specified time to live (ttl).
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Understand how sources declare operation capabilities via supportedOperations and how SourceList respects them.
FirestoreAdminSource connects google_cloud_firestore for server-side Dart applications to a SourceList.
FirestoreSource seamlessly connects Cloud Firestore streams to a SourceList.
Perform untyped Firestore document merges using the raw method on Firestore sources.
Cached data is mapped uniquely per request hash (RequestDetails with specific filter and pagination), supporting a powerful request-based caching behavior.
The SourceList class manages the delegation of read/write attempts to various configured Sources, with a read-thru cache system prioritizing local Sources.
| name | cache-expiry-ttl |
| description | Automatically invalidate local caches after a specified time to live (ttl). |
| metadata | {"last_modified":"Sat, 18 Apr 2026 1:52:50 GMT"} |
To automatically expire locally cached data, pass a ttl to the RequestDetails object when calling any read method. This will fetch data from the server and cache it locally under the context of the ttl.
final details = RequestDetails(
ttl: const Duration(minutes: 5),
);
await userRepository.getById('123', details: details);
// Wait 5 minutes...
// This will return null because the cache has expired.
final userWillBeNull = await userRepository.getById(
'123',
details: RequestDetails(
requestType: RequestType.local,
),
);
// However, a default request with the default [RequestDetails]
// will then fall back to the server and re-fetch User 123.
final refreshedUser123 = await userRepository.getById('123');