Exemple #1
0
        public bool Exists(string key)
        {
            if (string.IsNullOrEmpty(key))
            {
                throw new ArgumentException(nameof(key));
            }

            string normalizedKey = key.ToLower().ToConsulKey();

            return(_client.ExistKeyValueAsync(normalizedKey).GetAwaiter().GetResult());
        }