C# Class Profiles.Framework.Utilities.Cache

Mostrar archivo Open project: ProfilesRNS/ProfilesRNS

Public Methods

Method Description
AlterDependency ( string key ) : void
Fetch ( string key ) : XmlDocument

Used to Fetch RDF data or Presentation data from cache.

FetchObject ( string key ) : Object

Used to Fetch RDF data or Presentation data from cache.

HashForKey ( string plainText ) : string

Takes a string of plain text and then returns a MD5 hash value

Remove ( string key ) : void
Set ( string key, Object data ) : void
Set ( string key, Object data, System.Int64 nodeId, String sessionID ) : void

Uses the web.config value for CACHE_EXPIRE to set the lenght of time for an object to be stored in RAM on web server.

Set ( string key, Object data, double cachetimeout, System.Web.Caching.CacheDependency dependency ) : void

Used to Set objects in cache for a set timout lenght of time.

SetWithTimeout ( string key, Object data, double cachetimeout ) : void

Method Details

AlterDependency() public static method

public static AlterDependency ( string key ) : void
key string
return void

Fetch() public static method

Used to Fetch RDF data or Presentation data from cache.
public static Fetch ( string key ) : XmlDocument
key string
return System.Xml.XmlDocument

FetchObject() public static method

Used to Fetch RDF data or Presentation data from cache.
public static FetchObject ( string key ) : Object
key string
return Object

HashForKey() public static method

Takes a string of plain text and then returns a MD5 hash value
public static HashForKey ( string plainText ) : string
plainText string
return string

Remove() public static method

public static Remove ( string key ) : void
key string
return void

Set() public static method

public static Set ( string key, Object data ) : void
key string
data Object
return void

Set() public static method

Uses the web.config value for CACHE_EXPIRE to set the lenght of time for an object to be stored in RAM on web server.
public static Set ( string key, Object data, System.Int64 nodeId, String sessionID ) : void
key string Unique key value to Set and Fetch item from cache
data Object Data value to be Set in cache
nodeId System.Int64
sessionID String
return void

Set() public static method

Used to Set objects in cache for a set timout lenght of time.
public static Set ( string key, Object data, double cachetimeout, System.Web.Caching.CacheDependency dependency ) : void
key string
data Object
cachetimeout double
dependency System.Web.Caching.CacheDependency
return void

SetWithTimeout() public static method

public static SetWithTimeout ( string key, Object data, double cachetimeout ) : void
key string
data Object
cachetimeout double
return void