BB.Caching.Cache.Shared.Hashes.Set C# (CSharp) Method

Set() public static method

Sets the specified fields to their respective values in the hash stored at key. This command overwrites any existing fields in the hash. If key does not exist, a new key holding a hash is created.
http://redis.io/commands/hmset
public static Set ( RedisKey key, HashEntry values ) : System.Threading.Tasks.Task
key RedisKey
values HashEntry
return System.Threading.Tasks.Task
                public static Task Set(RedisKey key, HashEntry[] values)
                {
                    var connections = SharedCache.Instance.GetWriteConnections(key);
                    Task result = null;

                    foreach (var connection in connections)
                        result = connection
                            .GetDatabase(SharedCache.Instance.Db)
                            .HashSetAsync(key, values);

                    return result;
                }

Same methods

Cache.Shared.Hashes::Set ( RedisKey key, RedisValue field, RedisValue value ) : Task
Cache.Shared.Hashes::Set ( RedisKey key, RedisValue field, RedisValue value ) : bool
Cache.Shared.Hashes::Set ( RedisKey key, HashEntry values ) : void