C# Class SuperMap.Connector.CacheManager

缓存管理类。
Show file Open project: SuperMap/iClient-for-DotNet

Public Properties

Property Type Description
CacheDuration int

Public Methods

Method Description
AddCache ( string key, object data ) : bool

根据给定的Key和数据,加入到缓存中。

GetCache ( string key ) : object

根据给定的key获取到一个对应的缓存。

Private Methods

Method Description
CacheManager ( ) : System

Method Details

AddCache() public method

根据给定的Key和数据,加入到缓存中。
public AddCache ( string key, object data ) : bool
key string 缓存的key。
data object 缓存的内容。
return bool

GetCache() public method

根据给定的key获取到一个对应的缓存。
public GetCache ( string key ) : object
key string 缓存的key。
return object

Property Details

CacheDuration public static property

public static int CacheDuration
return int