Method | Description | |
---|---|---|
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 ) : |
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.
|
Method | Description | |
---|---|---|
CleanCallback ( ) : Task | ||
CleanCallback ( object state ) : void | ||
GetDuration ( string text ) : System.TimeSpan | ||
Init ( ) : Task | ||
InitializeEntries ( ) : Task | ||
InitializeEntries ( ) : void | ||
WaitForPendingWriteIfExists ( string key ) : Task |
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. |
return | Task |
protected CleanCallback ( object state ) : void | ||
state | object | |
return | void |
public static CreateCache ( string cacheName, Configuration configuration ) : |
||
cacheName | string | Cache name. |
configuration | Configuration | |
return |
protected GetDuration ( string text ) : System.TimeSpan | ||
text | string | |
return | System.TimeSpan |
public GetFilePathAsync ( string key ) : Task |
||
key | string | |
return | Task |
public SimpleDiskCache ( string cachePath, Configuration configuration ) : System | ||
cachePath | string | Cache path. |
configuration | Configuration | |
return | System |
public TryGetStreamAsync ( string key ) : Task |
||
key | string | Key. |
return | Task |
protected WaitForPendingWriteIfExists ( string key ) : Task | ||
key | string | |
return | Task |