# PlaybackCacheClient Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.Subsystems.Playback.PlaybackCacheClient/ PlaybackCacheClient Queries and edits the playback cache of the running NSDK session. --- ## Declaration public class PlaybackCacheClient ## Remarks The cache exists while XR is initialized. Every call reads the current session, so one client keeps working across XR restarts, and throws InvalidOperationException while no session runs. --- ## Constructors public PlaybackCacheClient() #### Summary Creates a client for the running NSDK session's playback cache. --- ## Methods | Name | Type | Summary | | --- | --- | --- | | ClearCache | void | Deletes every cached recording. Close every dataset opened from the cache first. | | DeleteCached | void | Deletes the scan's cached recording. Close every dataset opened from the scan first. | | GetCachedPlaybacks | IReadOnlyList | Lists the scans in the cache, in no particular order. Makes no network call. | | IsCached | bool | Whether the scan's recording is fully downloaded and extracted. Makes no network call. | | async OpenAsync | Task | Opens the scan's recording, downloading it into the cache unless it is already there. The caller closes the dataset. | ---