Class SKChainedTileCacheStore
Tries multiple cache stores in order for reads. Writes go to all writable stores. Use for layered caching (e.g. app-package read-only store + disk cache).
public sealed class SKChainedTileCacheStore : ISKTileCacheStore, IDisposable
- Inheritance
-
SKChainedTileCacheStore
- Implements
- Inherited Members
Constructors
- SKChainedTileCacheStore(params ISKTileCacheStore[])
Creates a chained cache store. Stores are tried in order for reads. Writes go to all stores.
Methods
- ClearAsync(CancellationToken)
Clears all cached entries.
- RemoveAsync(string, CancellationToken)
Removes a specific cache entry.
- SetAsync(string, SKImagePyramidTileData, CancellationToken)
Stores tile data. Implementations should be safe to call fire-and-forget.
- TryGetAsync(string, CancellationToken)
Returns cached tile data, or null on a miss or expiry.