C# Class Meek.Caching.Cache

Inheritance: ICache, IDisposable
Show file Open project: klintz/Meek Class Usage Examples

Private Properties

Property Type Description
Cache System

Public Methods

Method 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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Cache ( string cacheName ) : System

Internal Constructor to restrict creation of instance outside of assembly

Method Details

Add() public method

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
return object

Add() public method

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
return object

Clear() public method

Clear all Cache Values
public Clear ( ) : void
return void

Dispose() public method

Disposes the Object
public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetValue() public method

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

Insert() public method

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
return void

Insert() public method

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
return void

Remove() public method

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

SetExpiration() public method

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
return void

this() public method

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