메소드 | 설명 | |
---|---|---|
Clear ( ) : System.Threading.Tasks.Task |
清除所有缓存
|
|
DiskCacheProvider ( string path ) : System |
创建 DiskCacheProvider 对象
|
|
DiskCacheProvider ( string path, IFormatter serializer ) : System |
创建 DiskCacheProvider 对象
|
|
Dispose ( ) : void |
释放所有资源,停止提供缓存
|
|
Get ( string cacheKey ) : Task |
获取一个缓存值
|
|
Remove ( string cacheKey ) : System.Threading.Tasks.Task |
移除一个缓存项
|
|
Set ( string cacheKey, object value, CachePolicyItem cachePolicy ) : System.Threading.Tasks.Task |
设置一个缓存
|
public DiskCacheProvider ( string path ) : System | ||
path | string | 磁盘缓存路径 |
리턴 | System |
public DiskCacheProvider ( string path, IFormatter serializer ) : System | ||
path | string | 磁盘缓存路径 |
serializer | IFormatter | 二进制序列化器 |
리턴 | System |
public Remove ( string cacheKey ) : System.Threading.Tasks.Task | ||
cacheKey | string | 要移除的缓存键 |
리턴 | System.Threading.Tasks.Task |
public Set ( string cacheKey, object value, CachePolicyItem cachePolicy ) : System.Threading.Tasks.Task | ||
cacheKey | string | 缓存键 |
value | object | 缓存值 |
cachePolicy | CachePolicyItem | 缓存策略 |
리턴 | System.Threading.Tasks.Task |