C# Class Abp.Runtime.Caching.Memory.AbpMemoryCache

Implements ICache to work with MemoryCache.
Inheritance: CacheBase
显示文件 Open project: carldai0106/ABP

Public Methods

Method Description
AbpMemoryCache ( string name ) : System

Constructor.

Clear ( ) : void
Dispose ( ) : void
GetOrDefault ( string key ) : object
Remove ( string key ) : void
Set ( string key, object value, System.TimeSpan slidingExpireTime = null ) : void

Method Details

AbpMemoryCache() public method

Constructor.
public AbpMemoryCache ( string name ) : System
name string Unique name of the cache
return System

Clear() public method

public Clear ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

GetOrDefault() public method

public GetOrDefault ( string key ) : object
key string
return object

Remove() public method

public Remove ( string key ) : void
key string
return void

Set() public method

public Set ( string key, object value, System.TimeSpan slidingExpireTime = null ) : void
key string
value object
slidingExpireTime System.TimeSpan
return void