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
ToDictionary(SortedSetEntry[])
Create a dictionary from an array of SortedSetEntry values
public static Dictionary<RedisValue, double> ToDictionary(this SortedSetEntry[] sortedSet)
Parameters
sortedSet
SortedSetEntry[]
Returns
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
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
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
ToStringDictionary(SortedSetEntry[])
Create a dictionary from an array of SortedSetEntry values
public static Dictionary<string, double> ToStringDictionary(this SortedSetEntry[] sortedSet)
Parameters
sortedSet
SortedSetEntry[]
Returns
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>[]