Class RedisConnectionProvider
Provides a connection to redis.
Inheritance
Inherited Members
Namespace: Redis.OM
Assembly: Redis.OM.dll
Syntax
public class RedisConnectionProvider
Constructors
| Improve this Doc View SourceRedisConnectionProvider(RedisConnectionConfiguration)
Initializes a new instance of the RedisConnectionProvider class.
Declaration
public RedisConnectionProvider(RedisConnectionConfiguration connectionConfig)
Parameters
Type | Name | Description |
---|---|---|
RedisConnectionConfiguration | connectionConfig | The configuration. |
RedisConnectionProvider(ConfigurationOptions)
Initializes a new instance of the RedisConnectionProvider class.
Declaration
public RedisConnectionProvider(ConfigurationOptions configurationOptions)
Parameters
Type | Name | Description |
---|---|---|
StackExchange.Redis.ConfigurationOptions | configurationOptions | The options relevant to a set of redis connections. |
RedisConnectionProvider(IConnectionMultiplexer)
Initializes a new instance of the RedisConnectionProvider class.
Declaration
public RedisConnectionProvider(IConnectionMultiplexer connectionMultiplexer)
Parameters
Type | Name | Description |
---|---|---|
StackExchange.Redis.IConnectionMultiplexer | connectionMultiplexer | The options relevant to a set of redis connections. |
RedisConnectionProvider(String)
Initializes a new instance of the RedisConnectionProvider class.
Declaration
public RedisConnectionProvider(string connectionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | The string to use to connect to redis. |
Properties
| Improve this Doc View SourceConnection
Gets a command level interface to redis.
Declaration
public IRedisConnection Connection { get; }
Property Value
Type | Description |
---|---|
IRedisConnection |
Methods
| Improve this Doc View SourceAggregationSet<T>(Int32)
Gets an aggregation set for redis.
Declaration
public RedisAggregationSet<T> AggregationSet<T>(int chunkSize = 100)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | chunkSize | Size of chunks to use during pagination, larger chunks = larger payloads returned but fewer round trips. |
Returns
Type | Description |
---|---|
RedisAggregationSet<T> | the aggregation set. |
Type Parameters
Name | Description |
---|---|
T | The indexed type to run aggregations on. |
RedisCollection<T>(Int32)
Gets a redis collection.
Declaration
public IRedisCollection<T> RedisCollection<T>(int chunkSize = 100)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | chunkSize | Size of chunks to use during pagination, larger chunks = larger payloads returned but fewer round trips. |
Returns
Type | Description |
---|---|
IRedisCollection<T> | A RedisCollection. |
Type Parameters
Name | Description |
---|---|
T | The type the collection will be retrieving. |