Table of Contents

Class ExtensionMethods

Namespace
StackExchange.Redis
Assembly
StackExchange.Redis.StrongName.dll

Utility methods

public static class ExtensionMethods
Inheritance
ExtensionMethods
Inherited Members

Methods

ToDictionary(HashEntry[])

Create a dictionary from an array of HashEntry values

public static Dictionary<RedisValue, RedisValue> ToDictionary(this HashEntry[] hash)

Parameters

hash HashEntry[]

Returns

Dictionary<RedisValue, RedisValue>

ToDictionary(SortedSetEntry[])

Create a dictionary from an array of SortedSetEntry values

public static Dictionary<RedisValue, double> ToDictionary(this SortedSetEntry[] sortedSet)

Parameters

sortedSet SortedSetEntry[]

Returns

Dictionary<RedisValue, double>

ToDictionary(KeyValuePair<RedisKey, RedisValue>[])

Create a dictionary from an array of key/value pairs

public static Dictionary<RedisKey, RedisValue> ToDictionary(this KeyValuePair<RedisKey, RedisValue>[] pairs)

Parameters

pairs KeyValuePair<RedisKey, RedisValue>[]

Returns

Dictionary<RedisKey, RedisValue>

ToDictionary(KeyValuePair<string, string>[])

Create a dictionary from an array of string pairs

public static Dictionary<string, string> ToDictionary(this KeyValuePair<string, string>[] pairs)

Parameters

pairs KeyValuePair<string, string>[]

Returns

Dictionary<string, string>

ToStringArray(RedisValue[])

Create an array of strings from an array of values

public static string[] ToStringArray(this RedisValue[] values)

Parameters

values RedisValue[]

Returns

string[]

ToStringDictionary(HashEntry[])

Create a dictionary from an array of HashEntry values

public static Dictionary<string, string> ToStringDictionary(this HashEntry[] hash)

Parameters

hash HashEntry[]

Returns

Dictionary<string, string>

ToStringDictionary(SortedSetEntry[])

Create a dictionary from an array of SortedSetEntry values

public static Dictionary<string, double> ToStringDictionary(this SortedSetEntry[] sortedSet)

Parameters

sortedSet SortedSetEntry[]

Returns

Dictionary<string, double>

ToStringDictionary(KeyValuePair<RedisKey, RedisValue>[])

Create a dictionary from an array of key/value pairs

public static Dictionary<string, string> ToStringDictionary(this KeyValuePair<RedisKey, RedisValue>[] pairs)

Parameters

pairs KeyValuePair<RedisKey, RedisValue>[]

Returns

Dictionary<string, string>