Show / Hide Table of Contents

Class RedisConnectionProvider

Provides a connection to redis.

Inheritance
System.Object
RedisConnectionProvider
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Redis.OM
Assembly: Redis.OM.dll
Syntax
public class RedisConnectionProvider

Constructors

| Improve this Doc View Source

RedisConnectionProvider(RedisConnectionConfiguration)

Initializes a new instance of the RedisConnectionProvider class.

Declaration
public RedisConnectionProvider(RedisConnectionConfiguration connectionConfig)
Parameters
Type Name Description
RedisConnectionConfiguration connectionConfig

The configuration.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

Connection

Gets a command level interface to redis.

Declaration
public IRedisConnection Connection { get; }
Property Value
Type Description
IRedisConnection

Methods

| Improve this Doc View Source

AggregationSet<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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX