C# Class CachingFramework.Redis.Context

Context class containing the public APIs.
Inheritance: IContext
Datei anzeigen Open project: thepirat000/CachingFramework.Redis

Public Methods

Method Description
Context ( ) : System.IO

Initializes a new instance of the Context class using Redis in localhost server default port 6379, and using the default Serializer.

Context ( string configuration ) : System.IO

Initializes a new instance of the Context class given the cache engine type and its configuration string, and using the default Serializer.

Context ( string configuration, ISerializer serializer ) : System.IO

Initializes a new instance of the Context class.

Context ( string configuration, ISerializer serializer, TextWriter log ) : System.IO

Initializes a new instance of the Context class.

Dispose ( ) : void

Disposes this instance.

GetConnectionMultiplexer ( ) : IConnectionMultiplexer

Gets the StackExchange.Redis's connection multiplexer. Use this if you want to directly access the SE.Redis API.

GetSerializer ( ) : ISerializer

Gets the serializer for this context.

Method Details

Context() public method

Initializes a new instance of the Context class using Redis in localhost server default port 6379, and using the default Serializer.
public Context ( ) : System.IO
return System.IO

Context() public method

Initializes a new instance of the Context class given the cache engine type and its configuration string, and using the default Serializer.
public Context ( string configuration ) : System.IO
configuration string The configuration string.
return System.IO

Context() public method

Initializes a new instance of the Context class.
public Context ( string configuration, ISerializer serializer ) : System.IO
configuration string The configuration string.
serializer ISerializer The serializer.
return System.IO

Context() public method

Initializes a new instance of the Context class.
public Context ( string configuration, ISerializer serializer, TextWriter log ) : System.IO
configuration string The configuration string.
serializer ISerializer The serializer.
log System.IO.TextWriter The textwriter to use for logging purposes.
return System.IO

Dispose() public method

Disposes this instance.
public Dispose ( ) : void
return void

GetConnectionMultiplexer() public method

Gets the StackExchange.Redis's connection multiplexer. Use this if you want to directly access the SE.Redis API.
public GetConnectionMultiplexer ( ) : IConnectionMultiplexer
return IConnectionMultiplexer

GetSerializer() public method

Gets the serializer for this context.
public GetSerializer ( ) : ISerializer
return ISerializer