C# Class Meek.Caching.Cache

Inheritance: ICache, IDisposable
Afficher le fichier Open project: klintz/Meek Class Usage Examples

Private Properties

Свойство Type Description
Cache System

Méthodes publiques

Méthode Description
Add ( string key, object value ) : object

Adds an Item to the Cache identified by a specified Key

Add ( string key, object value, System.DateTime expiration ) : object

Adds an Item to the Cache identified by a specified Key with a given Expiration

Clear ( ) : void

Clear all Cache Values

Dispose ( ) : void

Disposes the Object

GetValue ( string key ) : object

Gets the Value of an Item with the specified Key

Insert ( string key, object value ) : void

Inserts an Item to the Cache identified by a specified Key

Insert ( string key, object value, System.DateTime expiration ) : void

Inserts an Item to the Cache identified by a specified Key with a given Expiration

Remove ( string key ) : void

Removes an Item from the Cache identified by the specified Key

SetExpiration ( string key, System.DateTime expiration ) : void

Sets a Cache Item specified by a Key with an Expiration Date

this ( string key ) : object

Get or Sets the Cache Item Value based on an Item Key

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
Cache ( string cacheName ) : System

Internal Constructor to restrict creation of instance outside of assembly

Method Details

Add() public méthode

Adds an Item to the Cache identified by a specified Key
public Add ( string key, object value ) : object
key string Item Key
value object Item Value
Résultat object

Add() public méthode

Adds an Item to the Cache identified by a specified Key with a given Expiration
public Add ( string key, object value, System.DateTime expiration ) : object
key string Item Key
value object Item Value
expiration System.DateTime Item Expiration
Résultat object

Clear() public méthode

Clear all Cache Values
public Clear ( ) : void
Résultat void

Dispose() public méthode

Disposes the Object
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetValue() public méthode

Gets the Value of an Item with the specified Key
public GetValue ( string key ) : object
key string Item Key
Résultat object

Insert() public méthode

Inserts an Item to the Cache identified by a specified Key
public Insert ( string key, object value ) : void
key string Item Key
value object Item Value
Résultat void

Insert() public méthode

Inserts an Item to the Cache identified by a specified Key with a given Expiration
public Insert ( string key, object value, System.DateTime expiration ) : void
key string Item Key
value object Item Value
expiration System.DateTime Item Expiration
Résultat void

Remove() public méthode

Removes an Item from the Cache identified by the specified Key
public Remove ( string key ) : void
key string
Résultat void

SetExpiration() public méthode

Sets a Cache Item specified by a Key with an Expiration Date
public SetExpiration ( string key, System.DateTime expiration ) : void
key string Item Key
expiration System.DateTime Expiration Date
Résultat void

this() public méthode

Get or Sets the Cache Item Value based on an Item Key
public this ( string key ) : object
key string item key
Résultat object