diff options
author | Greg Soltis <gsoltis@google.com> | 2018-01-17 12:23:45 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-17 12:23:45 -0800 |
commit | 70d401d4837c7ff76531e74d2f363783e651bd4e (patch) | |
tree | 5b7176d5a0e18375cbc37e20a673c110d0556b43 /Firestore/Source/Local/FSTQueryCache.h | |
parent | b341356be10ab6860a021e0c4da4a1158f40ca8f (diff) |
Listen sequence numbers (#675)
* Generate and save sequence numbers for listens
* Add documentation
* Fix include path
* Fix unavailable comment
* Review feedback
Diffstat (limited to 'Firestore/Source/Local/FSTQueryCache.h')
-rw-r--r-- | Firestore/Source/Local/FSTQueryCache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Firestore/Source/Local/FSTQueryCache.h b/Firestore/Source/Local/FSTQueryCache.h index e0cf4c8..88c9df9 100644 --- a/Firestore/Source/Local/FSTQueryCache.h +++ b/Firestore/Source/Local/FSTQueryCache.h @@ -53,6 +53,11 @@ NS_ASSUME_NONNULL_BEGIN - (FSTTargetID)highestTargetID; /** + * Returns the highest listen sequence number of any query seen by the cache. + */ +- (FSTListenSequenceNumber)highestListenSequenceNumber; + +/** * A global snapshot version representing the last consistent snapshot we received from the * backend. This is monotonically increasing and any snapshots received from the backend prior to * this version (e.g. for targets resumed with a resume_token) should be suppressed (buffered) |