C# 클래스 FFImageLoading.Cache.SimpleDiskCache

상속: IDiskCache
파일 보기 프로젝트 열기: daniel-luberda/FFImageLoading

공개 메소드들

메소드 설명
AddToSavingQueueIfNotExistsAsync ( string key, byte bytes, System.TimeSpan duration ) : Task

Adds the file to cache and file saving queue if it does not exists.

ClearAsync ( ) : Task

Clears all cache entries.

CreateCache ( string cacheName, Configuration configuration ) : SimpleDiskCache

Creates new cache default instance.

ExistsAsync ( string key ) : Task

Checks if cache entry exists/

GetFilePathAsync ( string key ) : Task
RemoveAsync ( string key ) : Task

Removes the specified cache entry.

SimpleDiskCache ( string cachePath, Configuration configuration ) : System

Initializes a new instance of the FFImageLoading.Cache.SimpleDiskCache class.

TryGetStreamAsync ( string key ) : Task

Tries to get cached file as stream.

보호된 메소드들

메소드 설명
CleanCallback ( ) : Task
CleanCallback ( object state ) : void
GetDuration ( string text ) : System.TimeSpan
Init ( ) : Task
InitializeEntries ( ) : Task
InitializeEntries ( ) : void
WaitForPendingWriteIfExists ( string key ) : Task

메소드 상세

AddToSavingQueueIfNotExistsAsync() 공개 메소드

Adds the file to cache and file saving queue if it does not exists.
public AddToSavingQueueIfNotExistsAsync ( string key, byte bytes, System.TimeSpan duration ) : Task
key string Key to store/retrieve the file.
bytes byte File data in bytes.
duration System.TimeSpan Specifies how long an item should remain in the cache.
리턴 Task

CleanCallback() 보호된 메소드

protected CleanCallback ( ) : Task
리턴 Task

CleanCallback() 보호된 메소드

protected CleanCallback ( object state ) : void
state object
리턴 void

ClearAsync() 공개 메소드

Clears all cache entries.
public ClearAsync ( ) : Task
리턴 Task

CreateCache() 공개 정적인 메소드

Creates new cache default instance.
public static CreateCache ( string cacheName, Configuration configuration ) : SimpleDiskCache
cacheName string Cache name.
configuration Configuration
리턴 SimpleDiskCache

ExistsAsync() 공개 메소드

Checks if cache entry exists/
public ExistsAsync ( string key ) : Task
key string Key.
리턴 Task

GetDuration() 보호된 메소드

protected GetDuration ( string text ) : System.TimeSpan
text string
리턴 System.TimeSpan

GetFilePathAsync() 공개 메소드

public GetFilePathAsync ( string key ) : Task
key string
리턴 Task

Init() 보호된 메소드

protected Init ( ) : Task
리턴 Task

InitializeEntries() 보호된 메소드

protected InitializeEntries ( ) : Task
리턴 Task

InitializeEntries() 보호된 메소드

protected InitializeEntries ( ) : void
리턴 void

RemoveAsync() 공개 메소드

Removes the specified cache entry.
public RemoveAsync ( string key ) : Task
key string Key.
리턴 Task

SimpleDiskCache() 공개 메소드

Initializes a new instance of the FFImageLoading.Cache.SimpleDiskCache class.
public SimpleDiskCache ( string cachePath, Configuration configuration ) : System
cachePath string Cache path.
configuration Configuration
리턴 System

TryGetStreamAsync() 공개 메소드

Tries to get cached file as stream.
public TryGetStreamAsync ( string key ) : Task
key string Key.
리턴 Task

WaitForPendingWriteIfExists() 보호된 메소드

protected WaitForPendingWriteIfExists ( string key ) : Task
key string
리턴 Task