C# Class Cedar.Framework.Caching.CachingProviderBase

Show file Open project: Chinaccn/surfboard

Public Methods

Method Description
Add ( string key, object value, System.TimeSpan expirationTime ) : void

CachingProviderBase ( bool isenable ) : System
Clear ( ) : void

Remove all cache items added by the cache store itself.

Nothing will be done if not enabled.

Get ( string key ) : object

Protected Methods

Method Description
AddCore ( string key, object value, System.TimeSpan expirationTime ) : void

ClearCore ( ) : void

Remove all cache items added by the cache store itself.

GetCore ( string key ) : object

Method Details

Add() public method

public Add ( string key, object value, System.TimeSpan expirationTime ) : void
key string
value object
expirationTime System.TimeSpan
return void

AddCore() protected abstract method

protected abstract AddCore ( string key, object value, System.TimeSpan expirationTime ) : void
key string
value object
expirationTime System.TimeSpan
return void

CachingProviderBase() public method

public CachingProviderBase ( bool isenable ) : System
isenable bool
return System

Clear() public method

Remove all cache items added by the cache store itself.
Nothing will be done if not enabled.
public Clear ( ) : void
return void

ClearCore() protected abstract method

Remove all cache items added by the cache store itself.
protected abstract ClearCore ( ) : void
return void

Get() public method

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

GetCore() protected abstract method

protected abstract GetCore ( string key ) : object
key string
return object