C# Class ElmcityUtils.MockCache

Inheritance: ICache
显示文件 Open project: judell/elmcity Class Usage Examples

Public Methods

Method Description
Insert ( string key, Object value, System.Web.Caching.CacheDependency dependency, System.DateTime absolute_expiration, System.TimeSpan sliding_expiration, CacheItemPriority priority, CacheItemRemovedCallback removed_callback ) : void
MockCache ( ) : System
Remove ( string key ) : Object
this ( string key ) : Object

Private Methods

Method Description
Remover ( string key, System.TimeSpan sliding_expiration ) : bool

Method Details

Insert() public method

public Insert ( string key, Object value, System.Web.Caching.CacheDependency dependency, System.DateTime absolute_expiration, System.TimeSpan sliding_expiration, CacheItemPriority priority, CacheItemRemovedCallback removed_callback ) : void
key string
value Object
dependency System.Web.Caching.CacheDependency
absolute_expiration System.DateTime
sliding_expiration System.TimeSpan
priority CacheItemPriority
removed_callback CacheItemRemovedCallback
return void

MockCache() public method

public MockCache ( ) : System
return System

Remove() public method

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

this() public method

public this ( string key ) : Object
key string
return Object