C# Class Utilities.CacheUtil

Mostra file Open project: jediskywalker/RTDeals

Public Methods

Method Description
Exists ( string key ) : System.Boolean

used to determine if object in cache exists

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
CacheUtil ( ) : System

Method Details

Exists() public static method

used to determine if object in cache exists
public static Exists ( string key ) : System.Boolean
key string
return System.Boolean

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