C# Класс Meek.Caching.Cache

Наследование: ICache, IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Cache System

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
Cache ( string cacheName ) : System

Internal Constructor to restrict creation of instance outside of assembly

Описание методов

Add() публичный Метод

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
Результат object

Add() публичный Метод

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
Результат object

Clear() публичный Метод

Clear all Cache Values
public Clear ( ) : void
Результат void

Dispose() публичный Метод

Disposes the Object
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetValue() публичный Метод

Gets the Value of an Item with the specified Key
public GetValue ( string key ) : object
key string Item Key
Результат object

Insert() публичный Метод

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
Результат void

Insert() публичный Метод

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
Результат void

Remove() публичный Метод

Removes an Item from the Cache identified by the specified Key
public Remove ( string key ) : void
key string
Результат void

SetExpiration() публичный Метод

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
Результат void

this() публичный Метод

Get or Sets the Cache Item Value based on an Item Key
public this ( string key ) : object
key string item key
Результат object