CacheBase<T> Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides methods and tools to cache files in a folder
public abstract class CacheBase<T>
type CacheBase<'T> = class
Public MustInherit Class CacheBase(Of T)
- T
Generic type as supplied by consumer of the class
- Inheritance
-
CacheBase<T>
- Derived
Cache |
Initializes a new instance of the CacheBase<T> class. |
Cache |
Gets or sets the life duration of every cache entry. |
Http |
Gets instance of HttpClient |
Max |
Gets or sets max in-memory item storage count |
Retry |
Gets or sets the number of retries trying to ensure the file is cached. |
Clear |
Clears all files in the cache |
Clear |
Clears file if it has expired |
Get |
Gets the StorageFile containing cached item for given Uri |
Get |
Retrieves item represented by Uri from the cache. If the item is not found in the cache, it will try to downloaded and saved before returning it to the caller. |
Get |
Retrieves item represented by Uri from the in-memory cache if it exists and is not out of date. If item is not found or is out of date, default instance of the generic type is returned. |
Initialize |
Initializes FileCache and provides root folder and cache folder name |
Initialize |
Cache specific hooks to process items from HTTP response |
Initialize |
Cache specific hooks to process items from HTTP response |
Is |
Override-able method that checks whether file is valid or not. |
Pre |
Assures that item represented by Uri is cached. |
Remove |
Removed items based on uri list passed |
Remove |
Removes cached files that have expired |
Producto | Versiones |
---|---|
Windows Community Toolkit | 6.1.1, 7.0.0, 7.1.0 |