C# Класс ModernApp4Me.WP8.Cache.M4MMemoryCacher

A class which enables to cache data in RAM only. This class implements the singleton pattern and is thread safe !
Показать файл Открыть проект

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

Метод Описание
Add ( string key, object value ) : bool

Adds the business object corresponding to the provided parameter into the M4MMemoryCacher by specifying the key.

Get ( string key ) : M4MMemoryCacherObject

Retrieves the business object stores into the M4MMemoryCacher and corresponding to the specifying key.

IsKeyExists ( string key ) : bool

Checks if the specifying key exists in into the M4MMemoryCacher.

Remove ( string key ) : bool

Deletes the business object stores into the M4MMemoryCacher and corresponding to the specifying key.

Update ( string key, object value ) : bool

Updates the business object stores into the M4MMemoryCacher and corresponding to the specifying key.

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

Метод Описание
M4MMemoryCacher ( ) : System

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

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

Adds the business object corresponding to the provided parameter into the M4MMemoryCacher by specifying the key.
public Add ( string key, object value ) : bool
key string the key corresponding to the business object
value object the business object
Результат bool

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

Retrieves the business object stores into the M4MMemoryCacher and corresponding to the specifying key.
public Get ( string key ) : M4MMemoryCacherObject
key string the key corresponding to the business object
Результат M4MMemoryCacherObject

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

Checks if the specifying key exists in into the M4MMemoryCacher.
public IsKeyExists ( string key ) : bool
key string the key to test
Результат bool

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

Deletes the business object stores into the M4MMemoryCacher and corresponding to the specifying key.
public Remove ( string key ) : bool
key string the key corresponding to the business object
Результат bool

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

Updates the business object stores into the M4MMemoryCacher and corresponding to the specifying key.
public Update ( string key, object value ) : bool
key string the key corresponding to the business object
value object the business object
Результат bool