C# 클래스 TheChan.Services.Cache.CacheService

상속: ICacheService
파일 보기 프로젝트 열기: acedened/TheChan

공개 메소드들

메소드 설명
ClearCache ( CacheItemType type ) : System.Threading.Tasks.Task
DeleteItemAsync ( string uri, CacheItemType type = CacheItemType.Other ) : System.Threading.Tasks.Task
GetCachedItemsSizeInBytes ( CacheItemType type ) : Task
RetrieveFileAsync ( string url, CacheItemType type = CacheItemType.Other, Action onProgress = null ) : Task
RetrieveStreamAsync ( string url, CacheItemType type = CacheItemType.Other, Action onProgress = null ) : Task

비공개 메소드들

메소드 설명
DownloadAndGetStream ( string url, StorageFile newFile, Action onProgress ) : Task
DownloadToFile ( string url, StorageFile newFile, Action onProgress ) : System.Threading.Tasks.Task
GetFolderForType ( CacheItemType itemType ) : Task
GetFolderSize ( StorageFolder folder ) : Task
GetOrCreateFile ( string url, CacheItemType type ) : Task

메소드 상세

ClearCache() 공개 메소드

public ClearCache ( CacheItemType type ) : System.Threading.Tasks.Task
type CacheItemType
리턴 System.Threading.Tasks.Task

DeleteItemAsync() 공개 메소드

public DeleteItemAsync ( string uri, CacheItemType type = CacheItemType.Other ) : System.Threading.Tasks.Task
uri string
type CacheItemType
리턴 System.Threading.Tasks.Task

GetCachedItemsSizeInBytes() 공개 메소드

public GetCachedItemsSizeInBytes ( CacheItemType type ) : Task
type CacheItemType
리턴 Task

RetrieveFileAsync() 공개 메소드

public RetrieveFileAsync ( string url, CacheItemType type = CacheItemType.Other, Action onProgress = null ) : Task
url string
type CacheItemType
onProgress Action
리턴 Task

RetrieveStreamAsync() 공개 메소드

public RetrieveStreamAsync ( string url, CacheItemType type = CacheItemType.Other, Action onProgress = null ) : Task
url string
type CacheItemType
onProgress Action
리턴 Task