C# Class 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.
Inheritance: ISwiffotronCache
Mostra file Open project: WeeWorld/Swiffotron

Public Methods

Method Description
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.

Method Details

Get() public method

Get an object from the cache.
public Get ( string key ) : object
key string The key to the object to retrieve
return object

Has() public method

Test if the cache contains some key.
public Has ( string key ) : bool
key string The key to test
return bool

Initialise() public method

Called on creation of the cache object.
public Initialise ( string init ) : void
init string Ignored in this implementation.
return void

Put() public method

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