C# Class Ivony.Caching.MultiCacheProvider

实现多级异步缓存提供程序
Inheritance: IAsyncCacheProvider
Datei anzeigen Open project: Ivony/Ivony.Caching

Public Methods

Method Description
Clear ( ) : System.Threading.Tasks.Task
Dispose ( ) : void
Get ( string key ) : Task
MultiCacheProvider ( IAsyncCacheProvider l1Cache, IAsyncL2CacheProvider l2Cache ) : System

创建多级缓存提供程序对象

Remove ( string cacheKey ) : System.Threading.Tasks.Task
Set ( string key, object value, CachePolicyItem cachePolicy ) : System.Threading.Tasks.Task

Private Methods

Method Description
Background ( System.Threading.Tasks.Task task ) : void

在后台执行某任务

Method Details

Clear() public method

public Clear ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Dispose() public method

public Dispose ( ) : void
return void

Get() public method

public Get ( string key ) : Task
key string
return Task

MultiCacheProvider() public method

创建多级缓存提供程序对象
public MultiCacheProvider ( IAsyncCacheProvider l1Cache, IAsyncL2CacheProvider l2Cache ) : System
l1Cache IAsyncCacheProvider 一级缓存
l2Cache IAsyncL2CacheProvider 二级缓存
return System

Remove() public method

public Remove ( string cacheKey ) : System.Threading.Tasks.Task
cacheKey string
return System.Threading.Tasks.Task

Set() public method

public Set ( string key, object value, CachePolicyItem cachePolicy ) : System.Threading.Tasks.Task
key string
value object
cachePolicy CachePolicyItem
return System.Threading.Tasks.Task