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

Exists() public static method

Returns if field is an existing field in the hash stored at key.
http://redis.io/commands/hexists
public static Exists ( RedisKey key, RedisValue field ) : Task
key RedisKey
field RedisValue
return Task
                public static Task<bool> Exists(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)
                            .HashExistsAsync(key, field);
                        if (null == result)
                            result = task;
                    }
                    return result;
                }

Same methods

Cache.Shared.Hashes::Exists ( RedisKey key, RedisValue field ) : bool