namespace Mapbox.Platform.Cache
{
using Mapbox.Map;
using System;
public interface ICache
{
///
/// Maximum number of tiles to store
///
uint MaxCacheSize { get; }
///
/// Add tile data to the cache
///
/// Tile set name
/// Item to cache
/// Force insert even if item already exists.
void Add(string tilesetId, CanonicalTileId tileId, CacheItem item, bool replaceIfExists);
///
/// Get tile
///
///
///
/// byte[] with tile data. Null if requested tile is not in cache
CacheItem Get(string tilesetId, CanonicalTileId tileId);
/// Clear cache for all tile sets
void Clear();
///
/// Clear cache for one tile set
///
///
void Clear(string tilesetId);
///
/// Reinitialize cache. Might be needed after 'Clear', eg for SQLiteCache
///
void ReInit();
}
}