Interface ISKTileCacheStore
Platform-agnostic persistent tile storage keyed by string. Implementations provide disk, browser, or database-backed stores.
public interface ISKTileCacheStore : IDisposable
- Inherited Members
Remarks
Built-in implementations:
- SKDiskTileCacheStore — filesystem with hashed filenames and expiry.
- SKNullTileCacheStore — no-op (disabled cache).
- SKChainedTileCacheStore — tries multiple stores in order.
Custom implementations (e.g. IndexedDB for Blazor WASM, SQLite for mobile) are supported by implementing this interface directly.
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.