This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class FileMemoryCache { | |
init(byteCountLimit: Int) | |
/// Returns data for the byte range | |
func data(for byteRange: CountableRange<Int>) -> DispatchData? | |
/// Caches data for the byte range and evicts older data when exceeding byte count limit | |
func set(_ data: DispatchData, byteRange: CountableRange<Int>) | |
/// Removes everything from the cache | |
func removeAll() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment