C# Класс SWFProcessing.Swiffotron.IO.HTCache

This is a pretty dumb class. It's useful to use as a cache in unit tests and so forth, but not much else. The main problem is that nothing ever gets removed from it. It just grows and grows until things break.
Наследование: ISwiffotronCache
Показать файл Открыть проект

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

Метод Описание
Get ( string key ) : object

Get an object from the cache.

Has ( string key ) : bool

Test if the cache contains some key.

Initialise ( string init ) : void

Called on creation of the cache object.

Put ( string key, object value ) : void

Put a new object into the cache. If the object exists it is overwritten transparently.

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

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

Get an object from the cache.
public Get ( string key ) : object
key string The key to the object to retrieve
Результат object

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

Test if the cache contains some key.
public Has ( string key ) : bool
key string The key to test
Результат bool

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

Called on creation of the cache object.
public Initialise ( string init ) : void
init string Ignored in this implementation.
Результат void

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

Put a new object into the cache. If the object exists it is overwritten transparently.
public Put ( string key, object value ) : void
key string The key to store against.
value object The value to store.
Результат void