Exemplo n.º 1
0
        public IEnumerable <string> HKeys(string key)
        {
            ValidateKeyVal(key);
            var command = new HKeysCommand(key);

            return(command.Execute());
        }
 private string PerformHKeys(HKeysCommand command)
 {
     if (_storage.TryGetValue(command.Key, out var value))
     {
         if (value is HashValue hv)
         {
             return(hv.GetKeys());
         }
         return($"Type associated with key {command.Key} is not a hash-value type");
     }
     return("Key does not exists");
 }