C# Class Profiles.Framework.Utilities.Cache

Afficher le fichier Open project: ProfilesRNS/ProfilesRNS

Méthodes publiques

Méthode 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 méthode

public static AlterDependency ( string key ) : void
key string
Résultat void

Fetch() public static méthode

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

FetchObject() public static méthode

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

HashForKey() public static méthode

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

Remove() public static méthode

public static Remove ( string key ) : void
key string
Résultat void

Set() public static méthode

public static Set ( string key, Object data ) : void
key string
data Object
Résultat void

Set() public static méthode

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
Résultat void

Set() public static méthode

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
Résultat void

SetWithTimeout() public static méthode

public static SetWithTimeout ( string key, Object data, double cachetimeout ) : void
key string
data Object
cachetimeout double
Résultat void