BB.Caching.Cache.Shared.Hashes.Remove C# (CSharp) Метод

Remove() публичный статический Метод

Removes the specified fields from the hash stored at key. Non-existing fields are ignored. Non-existing keys are treated as empty hashes and this command returns 0.
http://redis.io/commands/hdel
public static Remove ( RedisKey key, RedisValue field ) : Task
key RedisKey
field RedisValue
Результат Task
                public static Task<bool> Remove(RedisKey key, RedisValue field)
                {
                    var connections = SharedCache.Instance.GetWriteConnections(key);
                    Task<bool> result = null;
                    foreach (var connection in connections)
                    {
                        var task = connection.GetDatabase(SharedCache.Instance.Db)
                            .HashDeleteAsync(key, field);
                        if (null == result)
                            result = task;
                    }
                    return result;
                }

Same methods

Cache.Shared.Hashes::Remove ( RedisKey key, RedisValue fields ) : Task