C# Class Dazzle.Storage.InMemoryStorage

Inheritance: IStorage
Mostrar archivo Open project: kellabyte/Dazzle.NET

Public Methods

Method Description
Delete ( string key ) : void

Delete the key that matches the provided key.

DeleteBatch ( IEnumerable batch ) : void

Delete the batch of keys.

Dispose ( ) : void
Get ( string key ) : string

Get the value for the given key from the storage.

GetEnumerator ( ) : string>>.IEnumerator

Get an enumerator to iterate the storage.

GetEnumerator ( string key ) : string>>.IEnumerator

Get an enumerator starting from the provided key to iterate the storage.

InMemoryStorage ( ) : System
Open ( ) : void

Open the storage for use.

Put ( string key, string value ) : void

Put the value for the given key in the storage.

PutBatch ( string>.Dictionary batch ) : void

Put the batch of keys and values in the storage.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
IEnumerable ( ) : IEnumerator

Get an enumerator to iterate the storage.

Method Details

Delete() public method

Delete the key that matches the provided key.
public Delete ( string key ) : void
key string Key to delete.
return void

DeleteBatch() public method

Delete the batch of keys.
public DeleteBatch ( IEnumerable batch ) : void
batch IEnumerable Batch of keys to delete.
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

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

Get() public method

Get the value for the given key from the storage.
public Get ( string key ) : string
key string Key to look up the value of.
return string

GetEnumerator() public method

Get an enumerator to iterate the storage.
public GetEnumerator ( ) : string>>.IEnumerator
return string>>.IEnumerator

GetEnumerator() public method

Get an enumerator starting from the provided key to iterate the storage.
public GetEnumerator ( string key ) : string>>.IEnumerator
key string The key to start the enumerator at.
return string>>.IEnumerator

InMemoryStorage() public method

public InMemoryStorage ( ) : System
return System

Open() public method

Open the storage for use.
public Open ( ) : void
return void

Put() public method

Put the value for the given key in the storage.
public Put ( string key, string value ) : void
key string Key to store value for.
value string Value to store.
return void

PutBatch() public method

Put the batch of keys and values in the storage.
public PutBatch ( string>.Dictionary batch ) : void
batch string>.Dictionary Batch of keys and values.
return void