C# Class Util.Cache

ファイルを表示 Open project: jediskywalker/RTDeals Class Usage Examples

Public Methods

Method Description
GetCacheItem ( string key ) : object

get specified cache item based on key provided

RemoveCacheItem ( string key ) : void

remove specified cache item

SetCacheItem ( string key, object data, int expireInSeconds ) : void

Insert an item into cache

Private Methods

Method Description
Cache ( ) : System
ExpireCheck ( ) : void

Method Details

GetCacheItem() public static method

get specified cache item based on key provided
public static GetCacheItem ( string key ) : object
key string
return object

RemoveCacheItem() public static method

remove specified cache item
public static RemoveCacheItem ( string key ) : void
key string
return void

SetCacheItem() public static method

Insert an item into cache
public static SetCacheItem ( string key, object data, int expireInSeconds ) : void
key string
data object
expireInSeconds int
return void